Skip to contents

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="_").

Examples

if (FALSE) { # \dontrun{
predict_ruodk_name("bar", "Submissions.foo")
# > "foo_bar"
predict_ruodk_name("bar", "Submissions")
# > "bar"
predict_ruodk_name("rock", "Submissions.foo_fighters")
# > "foo_fighters_rock"
} # }