Skip to contents

Description

odkr-package odkr
ODK Briefcase R API

R-ODK interface via ODK Briefcase

get_help()
Get help with command line interface for ODK Briefcase
get_briefcase()
Updates pre-installed ODK Briefcase jar file to the latest version downloaded from https://opendatakit.org.
create_sd()
Function to create an ODK Briefcase Storage directory
pull_local()
Pull ODK forms from a local ODK folder (/odk) collected from ODK Collect mobile clients
pull_remote()
Pull ODK forms from remote ODK Aggregate via ODK Briefcase
push_data()
Push ODK forms from local ODK Briefcase Storage folder to remote ODK Aggregate via ODK Briefcase
export_data()
Export data in CSV format from local ODK Briefcase Storage directory to a specified destination directory and a specified file name

Data handling post-export

expandMultChoice()
Function to recode a choose-multiple column where multiple answers are recorded in the same element (e.g. "ab ac ad", "ef eg eh") to a data frame with multiple separate 0/1 columns e.g.:
expand_choice()
Function to expand response to a more than one answer multiple choice question coded as a concatenated string
mergeNestedODK()
Retrieve parent data, matching to a nested (child) dataset by keys of a nested dataset exported from an ODK Aggregate Server.
renameODK()
Rename column names of data exported from an ODK Aggregate Server or from ODK Briefcase into more usable and human readable variable names.

Sample data

sampleData1
Sample dataset from an impact evaluation study of a mother and child nutrition programme in Kassala State, Sudan. This dataset contains cluster level data from the survey.
sampleData2
Sample dataset from an impact evaluation study of a mother and child nutrition programme in Kassala State, Sudan. This dataset contains information from mother respondents.
sampleData3
Sample dataset from an impact evaluation study of a mother and child nutrition programme in Kassala State, Sudan. This dataset contains information from child respondents.