to_date: Convert a vector to 'date' using the specified schema

View source: R/field_date.R

to_dateR Documentation

Convert a vector to 'date' using the specified schema

Description

Convert a vector to 'date' using the specified schema

Usage

to_date(x, schema = list(), ...)

Arguments

x

the vector to convert.

schema

the table-schema for the field.

...

passed on to other methods.

Details

When schema is missing a default schema is generated using complete_schema_date.

Value

Will return an Date vector with schema added as the 'schema' attribute.


djvanderlaan/datapackage documentation built on March 18, 2024, 4:57 p.m.