Skip to contents

One table per worksheet. Like hb_read_csv(), this produces a new base rather than restoring one.

Usage

hb_read_xlsx(path, ..., sheets = NULL, base_name = "harbouR base")

Arguments

path

Path to an .xlsx file.

...

These dots are for future extensions and must be empty.

sheets

Worksheet names to read. Default: all of them.

base_name

Name recorded for the new base.

Value

A harbour_dtable.

Examples

path <- tempfile(fileext = ".xlsx")
writexl::write_xlsx(list(Samples = data.frame(x = 1:2)), path)
hb_read_xlsx(path)
#> 
#> ── <harbour_dtable> ────────────────────────────────────────────────────────────
#> • base : "harbouR base"
#> • tables : 1
#> • rows : 2
#> • assets : 0
#> 
#> - Samples (1 cols, 2 rows)