R is a free, open-source programming language primarily used for statistical computing and data visualization. R is a popular and powerful tool for researchers in any field working with data, as it allows users to perform complex data analysis including data cleaning, data manipulation using a wide range of statistical techniques. R is also well-liked for its ability to create publication-quality data visualizations. Numerous user-developed packages are available for use with R; these packages add specialized statistical methods and graphical features.
Because R is a scripted language, researchers can more easily ensure that their analyses are reproducible.
R is made available through CRAN (the Comprehensive R Archive Network) and is freely available for Windows, MacOS, and Linux.
There are several apps and environments available for coding in R. A popular application for working in R is RStudio, which is available from Posit.
To install R on your computer:
You can also use R on the cloud through your browser, at posit.cloud. With the free version, there are some limits on memory, computation hours per month, etc.
R is free to install on Windows, Mac, and Linux computers, and R is also available for students, staff, faculty, and affiliates within GW's Virtual Computer Lab (VCL), provided by GW Information Technology.
GW Libraries offers workshops to help you get started learning coding, including R and Python. We also offer the following types of individual consultations:
Data Carpentry and Software Carpentry online workshop materials provide an excellent way to learn R in a free, self-paced fashion. Recommended Carpentries materials for beginners to learn R include the following:
GW's very own Professor John Paul Helveston has created excellent resources for learning R:
If you prefer learning from an e-book, a detailed, yet excellent introduction to R for data science is the following:
R Markdown and Quarto allow you to mix narrative and code to create reproducible documents, web sites, presentations, and more. R Markdown and Quarto can even include code from numerous languages beyond R, such as Python, C++, Julia and many more.
Shiny is a framework for creating web applications using R or Python code. It is designed primarily with data scientists in mind. You can create rShiny apps with no knowledge of HTML, CSS, or JavaScript.
Text mining with R, tutorials:
R for geospatial analysis, tutorials:
R can even be used to create generative art:
Here is a great resource if you are looking for packages that might be useful in your analysis: