% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read.R
\name{tl_read_excel}
\alias{tl_read_excel}
\title{Read an Excel file}
\usage{
tl_read_excel(path, sheet = 1, ...)
}
\arguments{
\item{path}{Path to an Excel file.}

\item{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.}

\item{...}{Additional arguments passed to \code{readxl::read_excel()}.}
}
\value{
A \code{tidylearn_data} object (a \link[tibble]{tibble} subclass)
with attributes \code{tl_source}, \code{tl_format}, and
\code{tl_timestamp}.
}
\description{
Reads an Excel file (\code{.xls}, \code{.xlsx}, or \code{.xlsm}) into a
\code{tidylearn_data} object. Requires the \pkg{readxl} package.
}
\examples{
\donttest{
# data <- tl_read_excel("path/to/data.xlsx")
# data <- tl_read_excel("path/to/data.xlsx", sheet = "Sheet2")
}

}
