path <- "C:/Users/R studio"
setwd("path/test")
# considering that R studio has directory named as test
This setwd function is not working. Can you please show how to use common path address as a variable in setwd so that if I want to change the directory to other subdirectories of the home path, then I can just append the new part at the end of the variable. Basically, I want to know how to use variable as a path in setwd.
setwd(paste0(path,"/test")or better yet just drop thepathvariable and pass the full path tosetwd