Learn R Programming

iNZightTools (version 2.0.1)

sheets: List available sheets within a file

Description

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

Usage

sheets(x)

Value

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

Arguments

x

a dataframe, presumably returned by smart_read

Author

Tom Elliott

Examples

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

Run the code above in your browser using DataLab