| Managing R Workspace |
| 1 | getwd() - Lists the current working directory. setwd("mydirectory") - Changes the current working directory to mydirectory. ls() - Lists the objects in the current workspace. rm(objectlist) - Removes (deletes) one or more objects. help(options) - Provides information about available options. options() - Lets you view or set current options. history(#) - Displays your last # commands (default = 25). savehistory("myfile") - Saves the commands history to myfile (default = .Rhistory). loadhistory("myfile") - Reloads a command's history (default = .Rhistory). save.image("myfile") - Saves the workspace to myfile (default = .RData). save(objectlist, file="myfile") - Saves specific objects to a file. load("myfile") - Loads a workspace into the current session. q() - Quits R. You'll be prompted to save the workspace. |
Комментарии