Skip to contents

Get a sheet layout

Usage

form_layout(model, id)

Arguments

model

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

id

Exact worksheet name.

Value

The effective layout (cells or table), with table column_count derived from the fields. Unknown sheets raise model_form_error.

Examples

model <- read_form_model("examples/survey-form.yaml", "form.model")
form_layout(model, "Observations")
#> $kind
#> [1] "table"
#> 
#> $start_row
#> [1] 6
#> 
#> $column_count
#> [1] 11
#>