Learn R Programming

datapackage (version 0.2.0)

dp_to_number: 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 = ".", ...)

Value

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

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.