odk_parse_submission: ODK parse submission

Description Usage Value Examples

View source: R/odk_parse_submission.R

Description

Convert the xml data from an ODK form submission to a dataframe

Usage

1

Value

A character vector of length 1 with the uuids (including the prefix "uuid:") of the submitted forms

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# Get a list of forms
fl <- odk_list_forms()
# # Keep only the one named "Recon"
recon <- fl %>% filter(name == 'Recon')
# Capture its secondary idea (slow)
id2 <- odk_get_secondary_id(id = recon$id)
# Get a list of the submissions for the form in question
submissions <- odk_list_submissions(url = 'https://bohemia.systems', id = 'recon', user = 'data', password = 'data')
# Capture an individual submission
submission <- odk_get_submission(url = 'https://bohemia.systems', id = recon$id, id2 = id2, uuid = submissions[1], user = 'data', password = 'data')
#' # Parse the submission into R format
#' odk_parse_submission(xml = submission)

databrew/seroprevalence documentation built on Aug. 26, 2020, 12:03 a.m.