prep_datatype_from_data: Get data types from data

View source: R/prep_datatype_from_data.R

prep_datatype_from_dataR Documentation

Get data types from data

Description

Get data types from data

Usage

prep_datatype_from_data(
  resp_vars = colnames(study_data),
  study_data,
  .dont_cast_off_cols = FALSE,
  guess_character = getOption("dataquieR.guess_character", default =
    dataquieR.guess_character_default)
)

Arguments

resp_vars

variable names of the variables to fetch the data type from the data

study_data

data.frame the data frame that contains the measurements Hint: Only data frames supported, no URL or file names.

.dont_cast_off_cols

logical internal use, only

guess_character

logical guess a data type for character columns based on the values

Value

vector of data types

See Also

prep_robust_guess_data_type()

Examples

## Not run: 
dataquieR::prep_datatype_from_data(cars)

## End(Not run)

dataquieR documentation built on Jan. 8, 2026, 5:08 p.m.