Adds the columns returned by util_additional_traits_table_fields() after the schema's own columns of the traits and excluded_data tables, and as fields allowed in the dataset block and on the traits entries of a dataset's metadata.yml, each with its description. Everything that reads these lists from the schema – the columns the build keeps, the fields dataset_test() allows, and the schema exported with the database – then includes them. Adding the same columns again changes nothing.

util_schema_add_traits_table_fields(schema, fields)

Arguments

schema

Schema for traits.build, as returned by get_schema()

fields

Named character vector of descriptions, named by column, as returned by util_additional_traits_table_fields()

Value

schema, with the columns added