Skip to Main Content

Data Services

Data Services helps our campus community work with qualitative and quantitative data for teaching, learning and research.

An Introduction Workshop to R & RStudio

  • R is a language and free software environment for statistical computing and graphics. (See The R Project for Statistical Computing)

  • To take our Introduction to R and RStudio Workshop, you need to install both R and RStudio,

  1. The R programming language should be installed first.
  2. Next, install RStudio, an integrated development environment (IDE), to help you work with R using a convenient interface.

Installing R and RStudio

Step 1:  visit the Comprehensive R Archive (CRAN) page where you should see the page below:

Step 2: Select the operating system for which you would like to download and install R.

  • For Windows:

Step 1: Click "Download R for Windows" on the Comprehensive R Archive (CRAN) page.

Step 2: On the next page, select "base"

Step 3: On the next page, select "Download R" in the gray box for the most recent version.

  • For macOS:

Step 1: Click "Download R for Windows" on the Comprehensive R Archive (CRAN) page

Step 2: On the next page, select the version of your machine. Choose Intel if you're unsure about it.

  • Downloading and installing:

  1. Find R-(version).exe file in your downloads
  2. Double click on the R-(version).exe file to start the installation

  • Step 2: Scroll down to see "Install RStudio" under item 2. click the button to begin downloading RStudio. [Note: the download button will be "Download RStudio Desktop for Windows" If you are using a Windows machine; it will be "Download RStudio Desktop for MacOS" If you are using a Mac machine]

  • Step 3: Find the RStudio-version.exe file in your downloads folder and double-click to start the installation process. [Note: For a Windows machine, just click through and accept the recommended steps. On a Mac, be sure to follow the final step and move RStudio from Downloads into your Applications folder.]

R Help and Resources

Three ways to access "R Help" resources while using RStudio

1. Click on the "Help" tab on the top left of the RStudio interface >> Click on "R Help" from the menu >> View R resources & manuals appearing in the lower right pane

 

2. Locate "Help" tab in the lower right pane >> Click on the Home icon links to R resources & manuals, and use the search bar to enter names of functions or packages to review the help documentations.

 

3. In the Script pane, you can enter help codes, such as:

help.start()     opens the main page of the ‘Help’ tab
help(FunctionName)    search for help on function
?FunctionName    same as help()