field: Create field metadata

Description Usage Arguments References See Also Examples

Description

The metadata for a field. See set_field and get_field to set and get field metadata to and from an object.

Usage

1
2
3
field(name = NULL, type = "string", format = NULL, title = NULL,
  description = NULL, rdfType = NULL, constraints = list(), unit = NULL,
  ...)

Arguments

name

(character) Field name.

type

(character) Field type (see table-schema/types-and-formats).

format

(character) Field format (see table-schema/types-and-formats).

title

(character) Human-readable title.

description

(character) Human-readable description.

rdfType

(character) URI of an RDF class (see table-schema/rich-types).

constraints

(named list) See constraints.

unit

(character) Unit of measurement.

...

(name = value) Additional properties.

References

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

See Also

Other meta objects: constraints, contributor, foreignKey, package, resource, schema, source

Other field functions: get_field, set_fields, set_field

Examples

1
2
3
4
5
field(
 name = "date_created",
 type = "date",
 format = "%Y-%m-%d"
)

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