Reads the airtable assets snapshot from cloud storage, derives a country / region / gear summary of male and female fishers, and uploads the result as a versioned JSON file for portal consumption.
Usage
export_frame_data(log_threshold = logger::DEBUG, package = "coasts")Arguments
- log_threshold
Logging threshold. Default is
logger::DEBUG.- package
Name of the package whose
inst/conf.ymlto read. Defaults to"coasts". Pass your own package name when calling from a downstream package with a compatible configuration.
Details
The census is the snapshot's frame_units table. The output JSON has one
record per (country, gaul1_name, gaul2_name, gear_name) combination with
fishers_male, fishers_female and n_boats totals; foot fishers count as
fishers but not as boats. Mozambique's census has no gear, so it has one
record per district without gear_name. Timor-Leste's census counts boats
only, so it is left out.
Files follow the package's add_version() convention
(prefix__YYYYMMDDHHMMSS_<sha7>__extension).
