predict_ruodk_name: Predict a field name after...

predict_ruodk_nameR Documentation

Predict a field name after tidyr::unnest_wider(names_sep="_") prefixes the form path.

Description

Predict a field name after tidyr::unnest_wider(names_sep="_") prefixes the form path.

Usage

predict_ruodk_name(name_str, path_str)

Arguments

name_str

An Xforms field name string.

path_str

A path string, e.g. "Submissions" or "Submissions.group_name".

Value

The name as built by tidyr::unnest_wider(names_sep="_").

See Also

Other utilities: attachment_get(), attachment_link(), attachment_url(), drop_null_coords(), form_schema_parse(), get_one_attachment(), get_one_submission(), get_one_submission_attachment_list(), get_one_submission_audit(), handle_ru_attachments(), handle_ru_datetimes(), handle_ru_geopoints(), handle_ru_geoshapes(), handle_ru_geotraces(), isodt_to_local(), odata_submission_rectangle(), prepend_uuid(), split_geopoint(), split_geoshape(), split_geotrace(), strip_uuid(), tidyeval, unnest_all()

Examples

## Not run: 
predict_ruodk_name("bar", "Submissions.foo")
# > "foo_bar"
predict_ruodk_name("bar", "Submissions")
# > "bar"
predict_ruodk_name("rock", "Submissions.foo_fighters")
# > "foo_fighters_rock"

## End(Not run)

dbca-wa/ruODK documentation built on March 20, 2024, 12:19 p.m.