excel_sheets for information
Alternatively, we can use excel_sheets() to get information on all worksheets in an Excel spreadsheet, and then read the one(s) you’re interested in.
## [1] "Torgersen Island" "Biscoe Island" "Dream Island"
Once you know the names of the worksheets, you can read them in individually with read_excel().
penguins_biscoe <- read_excel("data/penguins.xlsx", sheet = "Biscoe Island", na = "NA")
penguins_dream <- read_excel("data/penguins.xlsx", sheet = "Dream Island", na = "NA")
## [1] 52 8
## [1] 168 8
## [1] 124 8