r从特定工作表批量读取xls文件
我的文件夹中大约有30个excel文件 我对读这些书都感兴趣 我在下面使用了这个代码r从特定工作表批量读取xls文件,r,excel,batch-processing,R,Excel,Batch Processing,我的文件夹中大约有30个excel文件 我对读这些书都感兴趣 我在下面使用了这个代码 library(readxl) file.list <- list.files(pattern='*.xlsx') df.list <- lapply(file.list, read_excel) 库(readxl) file.list我们可以使用read\u excel的sheet参数。根据?读取excel 工作表-要阅读的工作表。字符串(工作表的名称)或整数(工作表的位置)。如果图纸是通过范围
library(readxl)
file.list <- list.files(pattern='*.xlsx')
df.list <- lapply(file.list, read_excel)
库(readxl)
file.list我们可以使用read\u excel
的sheet
参数。根据?读取excel
工作表-要阅读的工作表。字符串(工作表的名称)或整数(工作表的位置)。如果图纸是通过范围指定的,则忽略。如果两个参数均未指定工作表,则默认为第一个工作表
库(dplyr)
图书馆(readxl)
df.list一如既往地投入救援
library(dplyr)
library(readxl)
df.list <- map(file.list, read_excel, sheet = 'Piano')