assume_var_classes {eHDPrep} | R Documentation |
Assume variable classes in data
Description
Classes/data types of data variables are assumed with this function and
exported to a .csv file for amendment. Any incorrect classes can then be
corrected and imported using import_var_classes
.
Usage
assume_var_classes(data, out_file = NULL)
Arguments
data |
data frame |
out_file |
file where variables and their assumed classes are stored for user verification. |
Value
Writes a .csv file containing the variables and their assumed data types / classes.
See Also
Examples
# example below assumes incorrectly for several variables
tmp = tempfile(fileext = ".csv")
data(example_data)
assume_var_classes(example_data, tmp)
[Package eHDPrep version 1.3.3 Index]