Novice R user here...
I'm using the code below to import all csv files in a folder:
path <- "C:/Users/Daniel/Desktop/Motors/"
files <- list.files(path=path, pattern="*.csv")
for(file in files)
{
perpos <- which(strsplit(file, "")[[1]]==".")
assign(
gsub(" ","",substr(file, 1, perpos-1)),
read.csv(paste(path,file,sep="")))
}
These CSV files actually act as Lookup tables later in the code. To avoid user error, I'm curious as to whether it's possible, to convert any character data (not headings) within each dataframe to upper case as the files are imported.
Of course, I could just change each of the csv files, manually, but would rather avoid doing this.