data_restoretype: Restore the type of columns according to a reference data frame
Description
Restore the type of columns according to a reference data frame
Usage
data_restoretype(data, reference = NULL, ...)
Value
A data frame with columns whose types have been restored based on the
reference data frame.
Arguments
data
A data frame for which to restore the column types.
reference
A reference data frame from which to find the correct
column types. If NULL, each column is converted to numeric if it doesn't
generate NAs. For example, c("1", "2") can be converted to numeric but not
c("Sepal.Length").