Qyouu
谢谢大家的回复。为了完整性,这里是我加载任意数量(制表符)分隔文件的最终答案,在这种情况下有6列数据,其中第1列是字符,2是因子,余数是数字:##Read files named xyz1111.csv, xyz2222.csv, etc.filenames <- list.files(path="../Data/original_data", pattern="xyz+.*csv")##Create list of data frame names without the ".csv" part names <-substr(filenames,1,7))###Load all filesfor(i in names){ filepath <- file.path("../Data/original_data/",paste(i,".csv",sep="")) assign(i, read.delim(filepath, colClasses=c("character","factor",rep("numeric",4)), sep = "\t"))}