Skip to Main Content

Intro to R Programming

R is a powerful tool for data analysis and visualization; this guide will provide resources to get you started with this programming language!

Using the RStudio Interface

RStudio is made up of four main windowpanes:

1. Script Editor/Source

2. Console

3. Global Environment/History pane

4. Files/Plots/Packages/Help/Viewer pane

Code can be written in either the Script Editor or the Console. Make it a best practice to edit and run codes through the Script Editor, as you can save codes to keep record of what you did, show others how codes were run, and repeat coding later if needed. Limit using the Console to executing code, viewing results, and identifying errors.