Free Online R Textbooks

Photo of Captain Smith
Captain Smith

Many textbooks and resources for R are available online for free. This list covers only a small selection of them. Most books below can also be purchased in hard copy.

  • Hands-On Programming with R:
    This book provides a strong foundation in the basics of R and is designed for people with little to no experience in R or computer programming.
  • Introduction to Programming with R:
    This book provides introductory code for a semester-long course in base R.
  • R for Data Science:
    This book covers data management using tidyverse and was helpful when creating our data management course.
  • R Markdown: The Definitive Guide:
    Markdown is a markup language that is widely recognized by websites and text editing programs. It integrates with programming languages to create cohesive HTML and PDF documents. This book covers most of what you need to know to use Markdown in RStudio.
  • Intro to GIS and Spatial Analysis:
    This book covers spatial analysis in general, with sections covering both ArcGIS and R. If you are interested in using R for mapping, it's worth a look.
  • R for SAS and SPSS Users:
    This is an early draft of the full book. It includes sample code comparing SAS, R, and SPSS and describes the ways that R is structured differently from SAS and SPSS. If your background is in SAS or SPSS, this book may help you.
  • Reproducible Research in R:
    This book covers how to create reproducible research using R, including workflow and collaboration, starting with the basics of using R.
  • R for Applied Epidemiology and Public Health:
    This book covers common tasks used by epidemiologists with practical examples.
  • Welcome to R for Epidemiology:
    This book covers the coursework for an introductory college class on using R for epidemiology.
A variety of other online resources and tutorials can also be found at:

Return to the Workshops.