R Programming.工作空間

安裝及加載

1.安裝

install.packages("swirl")
packageVersion("swirl")

2.加載
注:每次使用之前都需要加載

library(swirl)
swirl()

文件管理及工作空間

獲得當前及設置工作空間

getwd()
setwd()

查看文件及對象

ls()      //list all the objects  in the working directory
dir() or list.files()  //list all the files in the working directory

創建新文件或文件夾

dir.create('dir_name')  //create a new directory
file.create('file_name')  //create a new file
file.info('file_name')
file.rename('old_name','new_name')
dir.create(file.path('folder1','folder2'), recursive=TRUE)
最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。