首页 > 代码库 > [R] 之 管理工作空间函数
[R] 之 管理工作空间函数
getwd() 显示当前工作目录
setwd("mydirectory") 修改当前工作目录为mydirectory
ls() 列出当前工作空间中的对象
rm(obj) 删除一个或多个对象
help(options) 显示可用选项的说明
options() 显示或设置当前选项
history(#) 显示最近使用过的#个命令
savehistory("myfile") 保存命令历史到文件myfile中(默认为.Rhistory)
loadhistory("myfile") 载入一个命令历史文件(默认为.Rhistory)
save.image("myfile") 保存工作空间到文件myfile中(默认为.RData)
load("myfile") 读取一个工作空间到当前会话中(默认为.RData)
save(obj,file="myfile") 保存指定对象到一个文件中
q() 退出
[R] 之 管理工作空间函数
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。