dp_to_number {datapackage}R Documentation

Convert a vector to 'number' using the specified field descriptor

Description

Convert a vector to 'number' using the specified field descriptor

Usage

dp_to_number(x, fielddescriptor = list(), decimalChar = ".", ...)

Arguments

x

the vector to convert.

fielddescriptor

the field descriptor for the field.

decimalChar

decimal separator. Used when the field field descriptor does not specify a decimal separator.

...

passed on to other methods.

Details

When fielddescriptor is missing a default field descriptor is generated.

Value

Will return an numeric vector with fielddescriptor added as the 'fielddescriptor' attribute.


[Package datapackage version 0.2.3 Index]