coerce_to_spec: Coerce data types to the specification

View source: R/check_spec.R

coerce_to_specR Documentation

Coerce data types to the specification

Description

Coerce data types to the specification

Usage

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.

See Also

Other Data Spec Functions: add_missing_spec_cols(), add_missing_spec_tables(), assert_case(), change_case_from_spec(), check_spec(), data_case()


Technomics/costmisc documentation built on Nov. 12, 2024, 8:05 a.m.