parse_field: Parse field

Description Usage Arguments Details References See Also

Description

Parse field

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
parse_field(x, meta = NULL)

parse_string(x)

parse_number(x, decimalChar = ".", groupChar = NULL, bareNumber = TRUE,
  unit = NULL)

parse_integer(x, bareNumber = TRUE, unit = NULL)

parse_boolean(x, trueValues = c("true", "True", "TRUE", "1"),
  falseValues = c("false", "False", "FALSE", "0"))

parse_date(x, format = "%Y-%m-%d")

parse_datetime(x, format = "%Y-%m-%dT%H:%M:%SZ")

Arguments

x

(atomic) Object to parse.

meta

(named list) Field metadata.

decimalChar

(character) Symbol used to indicate the decimal place.

groupChar

(character) Symbol used to chunk larger numbers.

bareNumber

(boolean) Whether x, if character, follows the formatting constraints of a number. If FALSE, trailing non-numeric characters are first removed.

unit

(character) Unit of measure in product power form (see parse_unit).

trueValues

(character) Values indicating TRUE.

falseValues

(character) Values indicating FALSE.

format

(character) Format specification (see strptime).

Details

TODO:

References

http://specs.frictionlessdata.io/table-schema/#field-descriptors

See Also

Other field parsers: parse_fields


ezwelty/dpkg documentation built on May 30, 2019, 7:19 a.m.