我有两个文件夹,folder1
每个文件夹folder2
大约有 200 个文件,要么是*rda
要么*R
. 我想从这两个目录中读取所有文件和数据集。我怎样才能做到这一点?
路径:
folder1: C:\folder1
folder2: C:\folder2
我的审判
setwd("C:/folder1")
myls <- ls() # do work as this will only list that are already loaded in the system
setwd("C:/folder2")
myls2 <- ls()
myls # do work as this will only list that are already loaded in the system
我知道这是一个简单的问题,但我没有任何答案。