set_fields: Set field metadata by name

Description Usage Arguments See Also Examples

Description

Set field metadata by name

Usage

1

Arguments

l

(list) List of objects to modify.

...

(name = value) Field metadata (named list or call to field) to assign to the object of the given name.

See Also

Other field functions: field, get_field, set_field

Examples

1
2
3
4
5
6
df <- set_fields(
  data.frame(id = 1L, value = 1.1),
  value = field(title = "Value"),
  id = field(title = "Unique identifier", constraints = constraints(unique = TRUE))
)
get_fields(df)

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