read_xlsx: Read an '.xlsx' file.

View source: R/write_xlsx.R

read_xlsxR Documentation

Read an .xlsx file.

Description

Read an .xlsx file with multiple sheets.

Usage

read_xlsx(filePath)

Arguments

filePath

The path to the output file.

Details

If the .xlsx contains multiple sheets, the output is a list with all sheets as data.frame entries in the list.

Value

A list or a data.frame.

Examples

f <- tempfile(fileext = ".xlsx")
write_xlsx(list(cars = mtcars, flowers = iris), filePath = f)
allDat <- read_xlsx(f)


beckerbenj/eatAnalysis documentation built on July 7, 2023, 5:51 p.m.