Coerce data types to the specification

coerce_to_spec(table_list, table_spec, .fn_date = as.Date)

Arguments

table_list

A list of data frames to check against the spec.

table_spec

The table spec. See details.

.fn_date

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.