Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 211995

Excluding sheets in readxl

$
0
0

I have data that comes in Excel spreadsheets, with a varying number of sheets. Rather than reading all the sheets, as has been explained elsewhere, I would like to exclude the first sheet when importing into R using the readxl package. Using the example data in the package:

library("readxl")
path <- readxl_example("datasets.xls")
lapply(excel_sheets(path), read_excel, path = path)

If I wanted to read all but the first sheet in this data set, is there a way to do it?


Viewing all articles
Browse latest Browse all 211995

Trending Articles