Skip to Main Content Carnegie Mellon University Libraries

Economics: 73-265 Economics and Data Science: Resources for Using R and RStudio

Books for Learning R

Online Courses and Learning

CMU Libraries R Workshop materials

The CMU Libraries Open Science and Data Collaborations (OSDC) program offers a series of workshops related to data wrangling and analysis using open source tools like R and OpenRefine.

 

In addition to the lesson content, you can view a series of short videos that walk through the content covered in these workshops.

Finding help with coding

Comic panels of an alligator trying to debug some code. First panel: A confident looking alligator gets an error message. Second panel: a few minutes later, the error remains and the alligator is looking carefully at their code. Third panel: 10 minutes after that, the error remains and the alligator is giving a frustrated

Artwork by @allison_horst.

Coding in R, whether you're an expert, novice or beginner, almost always involves building on other's code and learning from the broader coding community. Googling for answers to your coding questions, like troubleshooting error messages or figuring out how to get a plot to look a certain way, is part of the normal process of R programming. Here are a few useful websites and resources that can help you through your coding journey.

 

Many R packages come with useful resources that can help you navigate the various functions and options available. For example, many packages include extensive documentation with a full description of package functions and arguments. Some also offer a vignette, which is a more narrative style example of how the package can be used. Reference manuals and vignettes for two popular packages that you'll be using in this course, dplyr and ggplot2, are linked to below.

Additional resources

The sources below can support your learning in R by offering quick lookups through cheatsheets, alternative forms of learning data science, and expand your skills when you are ready to move to the next stage of computational methods and data analyses.