Skip to contents

This function retrieves KEFS (Kenya Fisheries Service) survey data from their dedicated Kobo instance, processes it, and uploads the raw data as a Parquet file to Google Cloud Storage.

Usage

ingest_kefs_surveys(log_threshold = logger::DEBUG)

Arguments

log_threshold

Logging threshold level (default: logger::DEBUG)

Value

No return value. Function downloads data, processes it, and uploads to Google Cloud Storage.

Details

The function performs the following steps:

  1. Reads configuration settings.

  2. Downloads survey data from KEFS Kobo instance (kf.fimskenya.co.ke).

  3. Checks for uniqueness of submissions.

  4. Converts data to tabular format.

  5. Uploads raw data as a Parquet file to Google Cloud Storage.

Note: Preprocessing, validation, and export stages for KEFS data are not yet implemented.

Examples

if (FALSE) { # \dontrun{
ingest_kefs_surveys()
} # }