Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/77.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
r从特定工作表批量读取xls文件_R_Excel_Batch Processing - Fatal编程技术网

r从特定工作表批量读取xls文件

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 工作表-要阅读的工作表。字符串(工作表的名称)或整数(工作表的位置)。如果图纸是通过范围

我的文件夹中大约有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

工作表-要阅读的工作表。字符串(工作表的名称)或整数(工作表的位置)。如果图纸是通过范围指定的,则忽略。如果两个参数均未指定工作表,则默认为第一个工作表

库(dplyr)
图书馆(readxl)

df.list一如既往地投入救援
library(dplyr)
library(readxl)
df.list <- map(file.list, read_excel, sheet = 'Piano')