Answers for "how to read multiple csv files from a directory in r"

R
0

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)
Posted by: Guest on February-18-2021

Code answers related to "how to read multiple csv files from a directory in r"

Browse Popular Code Answers by Language