sheets: List available sheets within a file

View source: R/import_data.R

sheetsR Documentation

List available sheets within a file

Description

Useful when reading an Excel file to quickly check what other sheets are available.

Usage

sheets(x)

Arguments

x

a dataframe, presumably returned by smart_read

Value

vector of sheet names, or NULL if the file was not an Excel workbook

Author(s)

Tom Elliott

Examples

cas_file <- system.file("extdata/cas500.xls", package = "iNZightTools")
cas <- smart_read(cas_file)
sheets(cas)

iNZightVIT/iNZightTools documentation built on May 4, 2024, 6:20 a.m.