update_field {fr}R Documentation

add or update field-specific metadata in a fr_tdr object

Description

add or update field-specific metadata in a fr_tdr object

Usage

update_field(x, field, ...)

Arguments

x

a fr_tdr object

field

character name of field in x to update

...

table schema field descriptors (e.g., title, description)

Value

an fr_tdr object containing the updated field

Examples

my_mtcars <-
  mtcars |>
  as_fr_tdr(name = "mtcars") |>
  update_field("mpg", title = "Miles Per Gallon")

S7::prop(my_mtcars, "schema")

[Package fr version 0.5.1 Index]