import_var_classes {eHDPrep} | R Documentation |
Import corrected variable classes
Description
Reads in output of assume_var_classes
, ensures all specified
datatypes are one of ("id", "numeric", "double", "integer", "character",
"factor","ordinal", "genotype", "freetext", "logical") as required for high
level 'eHDPrep' functions.
Usage
import_var_classes(file = "./datatypes.csv")
Arguments
file |
character string. Path to output of
|
Value
data frame containing the data type values of variables, as described
in file
See Also
Examples
tmp = tempfile(fileext = ".csv")
data(example_data)
assume_var_classes(example_data, tmp)
import_var_classes(tmp)
[Package eHDPrep version 1.3.3 Index]