parse_data: Helper to auto-parse un-formatted data with haven and readr

View source: R/ds2dd_detailed.R

parse_dataR Documentation

Helper to auto-parse un-formatted data with haven and readr

Description

Helper to auto-parse un-formatted data with haven and readr

Usage

parse_data(
  data,
  guess_type = TRUE,
  col_types = NULL,
  locale = readr::default_locale(),
  ignore.vars = "cpr",
  ...
)

Arguments

data

data.frame or tibble

guess_type

logical to guess type with readr

col_types

specify col_types using readr semantics. Ignored if guess_type is TRUE

locale

option to specify locale. Defaults to readr::default_locale().

ignore.vars

specify column names of columns to ignore when parsing

...

ignored

Value

data.frame or tibble

Examples

mtcars |>
  parse_data() |>
  str()

REDCapCAST documentation built on April 4, 2025, 3:18 a.m.