ls() # list variables in memory rm(varaibleName) # remove variables from memory class(variableName) # check variable data type
Rscript script.R # implement a R script source("s1.R") # implement a R script in RStudio
getwd() #get the current directory setwd(path) #set the working directory list.dir(getwd()) #list files in the current directory
data() # list datasets are available on your machine