[英]Generate path string of subfolder in the working directory for R
在R中,我想在工作目录的子文件夹中加载文件。 但是为了方便起见,我想生成此文件夹的路径以与我要访问的文件结合。 我不知道该怎么做。
请帮我。
非常感谢。
使用file.path
> file.path(getwd(), "yourpath")
[1] "C:/Users/john/Documents/yourpath"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.