I have a directory "space" containing 300 CSV files, and its path is "C://rstuff//space".
And I have a function:
myfunction <- function(my_dir, x, y){
}
I want to open some of the csv files, so I want to get the location of these files,and I use the argument 'my_dir' to indicate the location of the CSV files. I want to use setwd(paste0("C://rstuff//", my_dir)) (thanks for Batanichek's comment), but I think my way is not good to set the path, if I don't know the path exactly, what should I do? Is there any good methods?