Skip to contents

Retrieve column names specified in data_specification for a given table, optionally filtered by their requirement status.

Usage

find_specification(what, status = c("none", "mandatory", "optional"))

Arguments

what

Character string, the name of the table or element in data_specification (e.g., "action", "damage", "uncertainty").

status

Character string specifying the requirement level filter: "none" (default, returns all column names), "mandatory", or "optional".

Value

Character vector of column names matching the given status requirement.

Details

Inspects the specifications associated with what in data_specification and extracts column names matching the requested status. If status = "none" (the default), all specified column names are returned regardless of whether they are mandatory or optional.

Author

Frédéric Grelot, frederic.grelot.1994_cran@m4x.org