Learn R Programming

eHDPrep (version 1.3.3)

import_var_classes: 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")

Value

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

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.

See Also

assume_var_classes

Examples

Run this code
tmp = tempfile(fileext = ".csv")
data(example_data)
assume_var_classes(example_data, tmp)
import_var_classes(tmp)

Run the code above in your browser using DataLab