Home » Data Analysis » R Basics

R Basics


This module reviews the basics of the R programming language and its open-source development environment, RStudio. It reviews the basic operations involved in accessing the R platform and bringing the contents of a standard data file into the programming environment.


  • Using R & RStudio
  • Starting a Session
  • Working with Objects
  • Working with Scripts
  • Importing & Exporting Data and Objects
  • Working with Packages
  • Working with Environments

Operations & Packages

  • Defining and Removing Objects: <-, c(), rm()
  • Identifying Data Types: typeof()
  • Working with Memory: ls(), gc()
  • Working Directories: setwd()
  • Importing Data: read.csv(), readRDS(), foreign, readxl
  • Subsetting: $, [x], subset()
  • Working with Packages: install.packages(), library()
  • Creating Popup Windows for File Selection: file.choose()
  • Executing Scripts: source()
  • Basic Variable Summaries: summary()
  • Exporting Data & Objects: write.csv(), saveRDS()
  • Calling Python: reticulate
  • Attaching and Detaching Objects to Memory: attach(), detach()