Writing mutiple csv files into multiple data frames in R -
i tried write multiple csv files same amount of columns , rows multiple data frames, can accessed in way this:
file[1] #outputs whole content of first csv file file[2] #outputs whole content of second csv file
and on...
i have saved 1 data frame, neccesary values can't accessed in such way:
files = list.files(pattern="*.csv") myfiles = do.call(rbind, lapply(files, function(x) read.csv(x, stringsasfactors = false)))
myfiles 1 big data frame want access them in way explained above.
i using rstudio 0.9 , working directory files located. csv files named in way: "001.csv" "002.csv" "003.csv"...
thank in advance
Comments
Post a Comment