Hello I am attempting to create a single dataframe with multiple .csv files from a folder that will be updating/added to.
I have found previous answers on here however I am having a rather simple error
Error in read.table(file = file, header = header, sep = sep, quote = quote, : 'file' must be a character string or connection
dir<-"asdfasdfasdfasf/asdfasdfs" #change this to your directory
temp <- list.files(pattern="*.csv")
importDM<-lapply(temp, read.csv)
rawDM<-read.csv(importDM, header = TRUE) #will read csv
Please let me know what I am doing wrong!
Cheers,