How to list files and get and set current working directory in R
getwd returns an absolute filepath representing the current working directory of the R process; setwd(dir) is used to set the working directory to dir.
Usage
getwd()
setwd(dir)
list.files()
Look at to understand R functions and how to maniupulate their objects