To cite mdsr in publications use:

Baumer BS, Kaplan DT, Horton NJ (2021). Modern Data Science with R, 2nd edition. Chapman and Hall/CRC Press: Boca Raton. ISBN 9780367191498, https://www.routledge.com/Modern-Data-Science-with-R/Baumer-Kaplan-Horton/p/book/9780367191498.

Corresponding BibTeX entry:

  @Book{,
    title = {Modern Data Science with {R}},
    author = {Benjamin S. Baumer and Daniel T. Kaplan and Nicholas J.
      Horton},
    publisher = {Chapman and Hall/CRC Press: Boca Raton},
    year = {2021},
    month = {3},
    edition = {2nd},
    pages = {1--673},
    isbn = {9780367191498},
    url =
      {https://www.routledge.com/Modern-Data-Science-with-R/Baumer-Kaplan-Horton/p/book/9780367191498},
  }