To find the path of a file in R, you can use the file.path() function to create a file path from individual strings representing the directory and file name. Here is an example:
main.r240 chars9 lines
Alternatively, you can use the paste() function to concatenate the directory and file name strings together:
main.r108 chars3 lines
Both methods will create a file path that can be used to read in or write out files in R.
gistlibby LogSnag