Skip to contents

[Stable]

Usage

unnest_all(
  nested_tbl,
  names_repair = "universal",
  names_sep = "_",
  form_schema = NULL,
  verbose = get_ru_verbose()
)

Arguments

nested_tbl

A nested tibble

names_repair

The argument names_repair for tidyr::unnest_wider, default: "universal".

names_sep

The argument names_sep for tidyr::unnest_wider, default: "_". Un-nested variables inside a list column will be prefixed by the list column name, separated by names_sep. This avoids unsightly repaired names such as latitude...1. Set to NULL to disable prefixing.

form_schema

An optional form_schema, like the output of form_schema. If a form schema is supplied, location fields will not be unnested. While WKT location fields contain plain text and will never be unnested, GeoJSON location fields would cause errors during unnesting.

verbose

Whether to display debug messages or not.

Read vignette("setup", package = "ruODK") to learn how ruODK's verbosity can be set globally or per function.

Value

The un-nested tibble in wide format

Details

odata_submission_rectangle uses this function internally. Interested users can use this function to break down ruODK's automated steps into smaller components.

The quite verbose output of tidyr::unnest_wider is captured and hidden from the user.