Hello, may I ask a silly question about read_csv()? Not sure what's wrong, it seems not differentiating the upper/lowercase in the file name. For instance, if my file name is "This_is_number#.csv", I used the following code to read different .csv file in a loop,
a <- 'This_is_number'
b <- c(1,2,3,4,5,6)
for (i in 1:length(b)){
filein <- paste0(a, b[i], '.csv')
datalist <- read_csv(filein)
.....
}
but read_csv()
can load the file even if I mistakenly set a <- 'this_Is_Number'
, is there a way to make it read the exact file name? Thanks.