Skip to contents

Get sheet definitions

Usage

form_sheets(model)

Arguments

model

A checked form_model from read_form_model() or as_form_model().

Value

Sheets in declaration order, named by worksheet, each with fields and layout.

Details

Table layouts include column_count derived from the ordered fields. An optional primary_key preserves the declared sequence of local field names. Key components must be filled and their combination must identify one row; this package checks the declaration, not submitted values. Use form_definition() for the original declarations.

Examples

model <- read_form_model("examples/survey-form.yaml", "form.model")
names(form_sheets(model))
#> [1] "Metadata"     "Observations" "Samples"      "Measurements" "Equipment"