Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

how to read multiple csv files from a directory in r

temp = list.files(pattern="*.csv")
list2env(
  lapply(setNames(temp, make.names(gsub("*.csv$", "", temp))), 
         read.csv), envir = .GlobalEnv)
 
PREVIOUS NEXT
Tagged: #read #multiple #csv #files #directory
ADD COMMENT
Topic
Name
2+7 =