Skip to contents

Get all submissions from a KoboToolbox project through a kobo_asset or asset uid.

Usage

kobo_data(x, paginate, page_size, lang)

kobo_submissions(x, paginate, page_size, lang)

# S3 method for kobo_asset
kobo_submissions(x, paginate = FALSE, page_size = NULL, lang = NULL)

# S3 method for character
kobo_submissions(x, paginate = FALSE, page_size = NULL, lang = NULL)

# S3 method for default
kobo_submissions(x, paginate = FALSE, page_size = NULL, lang = NULL)

Arguments

x

a kobo_asset or character, the asset

paginate

logical, split submissions by page. Default to FALSE

page_size

integer, number of submissions per page. if missing, default to number of submissions divided by 5

lang

character, language for the variable and value labels

Value

A data.frame

Examples

if (FALSE) {
kobo_setup() # setup using your url and token
uid <- "a9cwEQcbWqWzA5hzkjRUWi" # pick a valid uid
asset <- kobo_asset(uid)
subs <- kobo_data(asset) ## kobo_submissions(asset)
library(dplyr)
glimpse(subs)
}