read_labelled_sheet: Reads an excel sheet with labelled data

View source: R/read_labelled_sheet.R

read_labelled_sheetR Documentation

Reads an excel sheet with labelled data

Description

Assumes variable labels are on row 1 and variable names are on row 2.

Usage

read_labelled_sheet(path, sheet, date_detect = NULL, start_row = 1L)

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

Value

a tibble

Examples

## Not run: 
d1 <- read_labelled_sheet(
  path = here::here(path, dsn1),
  sheet = "ae_listings",
  date_detect = "cyc1_visdat|cyc2_visdat"
)

## End(Not run)

pcctc/croquet documentation built on Aug. 10, 2024, 7:04 a.m.