to_integer: Convert a vector to 'integer' using the specified schema

View source: R/field_integer.R

to_integerR Documentation

Convert a vector to 'integer' using the specified schema

Description

Convert a vector to 'integer' using the specified schema

Usage

to_integer(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_integer.

Value

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


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