Coerce data types to the specification
coerce_to_spec(table_list, table_spec, .fn_date = as.Date)
A list of data frames to check against the spec.
The table spec. See details.
function for converting the SQL "DATETIME" type. Default
as.Date()
will only work with ISO dates. See
excel_numeric_to_date for a convenient function for Excel
numerics.
Other Data Spec Functions:
add_missing_spec_cols()
,
add_missing_spec_tables()
,
assert_case()
,
change_case_from_spec()
,
check_spec()
,
data_case()