Introduction to R
Last modified: 2024-11-13
Preface
These self-contained notes are intended for anyone that wants to use R but has little or no experience using it, and little or no experience in programming. Faculty and staff from the Consulting for Statistics, Computing & Analytics Research (CSCAR) unit made these notes as the basis for in-person workshops at the University of Michigan. During the workshops, we also use a slideshow based on these notes, available here.
CSCAR is a unit of the Office of the Vice President of Research at the University of Michigan. We offer U-M researchers guidance and training in data collection, management, and analysis; and in the use of technical software and advanced computing in research.
If you are a member of the faculty, professional staff, or a student at the University of Michigan, you can access our free, one-hour consultations with graduate-level statisticians. To request an appointment—which can be remote or in person—you can send an email to deskpeople@umich.edu, or you can fill this form. You can also walk-in for a consultation with one of our Graduate Student Research Assistants (GSRAs). GSRAs are available Monday through Friday, between 9am and 5pm (we close on Tuesdays between noon and 1pm).
CSCAR can also help with simple statistical questions through email. You can write to stats-consulting@umich.edu.
For more information on CSCAR, please visit http://cscar.research.umich.edu/.
Creation of this document
These notes are published using Quarto; the source code is available at https://github.com/CSCAR/workshop-r-intro.
You can switch between light and dark modes using the button in the top left corner of the screen. Dark mode reverses the colors of the images to reduce brightness. To show an image in its original colors, move your mouse over it (or press it if you are on a mobile device). All images link to more detailed full-size versions.
If you have any questions or comments about these notes, you can contact Abner Heredia Bustos (abnerhb@umich.edu).
Acknowledgments
We thank Abner Heredia Bustos, Josh Errickson, Xiru Lyu, and Chris Andrews for their contributions to these notes over the years.