Get a KoboToolbox survey form from a kobo_asset
or an asset unique identifier.
Value
A data.frame
with the following columns:
name
the name of the survey questionslist_name
the name of list of code used for values and labelstype
the type of KoboToolbox survey questionslabel
the label of the questionslang
the languages used in the surveyversion
the survey version unique identifierchoices
a list column with the choices values and labelskuid
the unique identifier of the questionqpath
andxpath
the path of the question in JSON/XML
You can also have other columns such as relevant
, calculation
, etc. depending on how
you structure for survey form.
Examples
if (FALSE) { # \dontrun{
# Use your own URL and token
kobo_setup(url = "https://kf.kobotoolbox.org/",
token = "9et1814c285w094f6v9bd629df47a1a0e81x53a0")
# Use your own API asset identifier
uid <- "a9cwEQcbWqWzA5hzkjRUWi"
asset <- kobo_asset(uid)
form <- kobo_form(asset)
} # }