
R Programming: Collection of R Commands
Comment I am a comment Output • print(“Hello World”) • cat(“Hello”, “World”) Information about R Commands # To find information about a specific command, e.g. ‘which’ • apropos(“which”) • help(which) • ?which • RSiteSearch(“which”) Command History & Exit # Show previously entered commands history() # Exit RStudio q() Working Directory # Show my R working directory getwd() # Change Working Directory # Set a new working directory setwd(‘PFAD’) Saving R Commands/Script Save R commands or R script locally save (myTable, file=“C:/Users/axxKreis/Desktop/myTable.RData”) Loading R Commands/Script # Load persisted results load (file=“C:/Users/axxKreis/Desktop/myTable.RData”) ...
