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 assume_var_classes which should be manually verified outside of R and corrected where any data type is incorrect.

Value

data frame containing the data type values of variables, as described in file

See Also

assume_var_classes

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]