Skip to contents

Reads an Excel file (.xls, .xlsx, or .xlsm) into a tidylearn_data object. Requires the readxl package.

Usage

tl_read_excel(path, sheet = 1, ...)

Arguments

path

Path to an Excel file.

sheet

Sheet to read. Either a string (the name of a sheet) or an integer (the position of the sheet). Defaults to the first sheet.

...

Additional arguments passed to readxl::read_excel().

Value

A tidylearn_data object (a tibble subclass) with attributes tl_source, tl_format, and tl_timestamp.

Examples

# \donttest{
# data <- tl_read_excel("path/to/data.xlsx")
# data <- tl_read_excel("path/to/data.xlsx", sheet = "Sheet2")
# }