Welcome to R for Epidemiology!

This electronic book was originally created to accompany my Introduction to R Programming for Epidemiologic Research course at the University of Texas Health Science Center School of Public Health. However, I hope it will be useful to anyone who is interested in R and epidemiology.


This book is currently a work in progress (and probably always will be); however, there are already many people who have played an important role (some unknowingly) in helping develop it thus far. First, I’d like to offer my gratitude to all past, current, and future members of the R Core Team for maintaining this amazing, free software. I’d also like to express my gratitude to everyone at RStudio. You are also developing and giving away some amazing software. In particular, I’d like to acknowledge Garrett Grolemund and Hadley Wickham. Both have had a huge impact on how I use, and teach, R. I’d also like to thank my students for all the feedback they’ve given me while taking my course. In particular, I want to thank Jared Wiegand and Yiqun Wang for their many edits and suggestions.

License Information

Creative Commons License
This book was created by Brad Cannell and is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.

Other Reading

You may also be interested in:

  • Hands-on Programming with R by Garrett Grolemund. This book is designed to provide a friendly introduction to the R language.
  • R for Data Science by Garrett Grolemund and Hadley Wickham. This book is designed to teach readers how to do data science with R.
  • Statistical Inference via Data Science: A ModernDive inot R and the Tidyverse. This book is designed to be a gentle introduction to the practice of analyzing data and answering questions using data the way data scientists, statisticians, data journalists, and other researchers would.
  • Reproducable Research with R and RStudio by Christopher Gandrud. This book gives you tools for data gathering, analysis, and presentation of results so that you can create dynamic and highly reproducible research.
  • Advanced R by Hadley Wickham. This book is designed primarily for R users who want to improve their programming skills and understanding of the language.