安裝及加載
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)
网友评论