Assumes variable labels are on row 1 and variable names are on row 2.
Arguments
- path
to the xls/xlsx file, including data set name and extension
- sheet
name of sheet to import
- date_detect
regex expression indicating variables to be imported as dates
- start_row
integer row position where labels are placed, defaults to 1L
Examples
if (FALSE) {
d1 <- read_labelled_sheet(
path = here::here(path, dsn1),
sheet = "ae_listings",
date_detect = "cyc1_visdat|cyc2_visdat"
)
}