Export Selected Landings Data
export_landings.Rd
This function retrieves validated landings data from a MongoDB collection, selects specific columns, and uploads the selected data to another MongoDB collection for use in summary applications.
Usage
export_landings(log_threshold = logger::DEBUG)
Value
This function does not return a value. It processes the data and uploads the selected fields to a MongoDB collection in the app database.
Details
The function performs the following main operations:
Retrieves validated landings data from the validated MongoDB collection.
Standardizes the 'gillnets' list column.
Selects specific columns from the validated data, including:
Basic information (form name, submission ID, survey ID, landing date)
Location data (sample district, landing site, latitude, longitude)
Fishing details (number of fishers, trip length, gear)
Catch information (usage, taxon, price, weight, price per kg in USD)
Uploads the selected data to the summary MongoDB collection in the app database.