Skip to contents

Combines catch event data with GPS tracking trips to create fisher performance metrics and exports them to MongoDB for analysis.

Usage

export_fishers_stats(package = "coasts")

Arguments

package

Name of the package whose `inst/conf.yml` to read. Defaults to `"coasts"`. Pass your own package name when calling from a downstream package with a compatible configuration.

Value

None (invisible). Creates and uploads data to two MongoDB collections: - Fisher catch statistics (aggregated summaries) - Trip-level performance metrics

Details

This function integrates two data sources: 1. Downloads catch events from tracks-app MongoDB (fisher-reported landings) 2. Retrieves corresponding GPS tracking data from PDS API 3. Matches catch events to tracking trips by date and device ID 4. Calculates fishing efficiency metrics (CPUE, fuel efficiency, search patterns) 5. Exports fisher statistics and performance metrics to MongoDB collections

Performance metrics include: - CPUE (kg per hour, kg per km traveled) - Search efficiency (distance vs range ratios) - Fuel efficiency estimates - Trip categorization (nearshore/mid-range/offshore)

See also

export_geos for exporting geospatial data mdb_collection_push for MongoDB upload functionality

Examples

if (FALSE) { # \dontrun{
# Export fisher statistics and performance metrics
export_fishers_stats()
} # }