Skip to contents

The process_asset function downloads data from Kobotoolbox for a given asset ID, processes each submission using the process_survey function, and compiles the results into a single tibble. It handles errors gracefully by using a safe version of the processing function.

Usage

process_asset(asset_id, conf)

Arguments

asset_id

A character string representing the asset ID to process.

conf

A list containing configuration parameters such as URL, username, and password for Kobotoolbox.

Value

A tibble containing processed survey data for the specified asset ID, or NULL if no data is available.

Examples

if (FALSE) { # \dontrun{
# Assuming 'conf' is a configuration list obtained from read_config()
asset_data <- process_asset("asset123", conf)
} # }