import_var_classes {eHDPrep} | R Documentation |
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.
import_var_classes(file = "./datatypes.csv")
file |
character string. Path to output of
|
data frame containing the data type values of variables, as described
in file
tmp = tempfile(fileext = ".csv")
data(example_data)
assume_var_classes(example_data, tmp)
import_var_classes(tmp)