
Coerce data.frame/tibble column data types to hub schema data types or character.
Source:R/coerce_to_hub_schema.R
coerce_to_hub_schema.Rd
Coerce data.frame/tibble column data types to hub schema data types or character.
Usage
coerce_to_hub_schema(
tbl,
config_tasks,
skip_date_coercion = FALSE,
as_arrow_table = FALSE
)
coerce_to_character(tbl, as_arrow_table = FALSE)
Arguments
- tbl
a model output data.frame/tibble
- config_tasks
a list version of the content's of a hub's
tasks.json
config file created using functionread_config()
.- skip_date_coercion
Logical. Whether to skip coercing dates. This can be faster, especially for larger
tbl
s.- as_arrow_table
Logical. Whether to return an arrow table. Defaults to
FALSE
.