this s the example to load ur data !
下面是一个用来加载数据的基本代码以供参考:
#clean workspace and setup working directory
remove(list=ls())
setwd("C:\....")
getwd()
#create a folder and download files
if(!file.exists("./data")){dir.create("./data")}
fileUrl <- "the web url"
download.file(fileUrl,destfile="./data/Dataset.zip")
unzip(zipfile="./data/Dataset.zip",exdir="./data")
path_rf <- file.path("./data" , "data.csv")
files<-list.files(path_rf, recursive=TRUE)
files
版权声明:本文为kidpea_lau原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。