Replace receiver locations in the detections dataframe with aggregated locations for the Feather River region.

aggregate_detections_feather(
  detections,
  receiver_metadata,
  create_detection_history = FALSE
)

Arguments

detections

A dataframe containing detections information.

receiver_metadata

A dataframe containing receiver metadata.

Value

A list containing:

  • A dataframe of detections with replaced receiver locations.

  • A dataframe of aggregated receiver metadata.

Details

This function replaces receiver locations in the detections dataframe with aggregated locations for the Feather River region according to the specified replacement dictionary. It aggregates receiver locations into one and calculates the mean River Kilometer (RKM), Latitude, Longitude, and Region for each aggregated location. The function also updates the receiver metadata accordingly.

Examples

# Aggregate detections for Feather River region
aggregated_data <- aggregate_detections_feather(detections_data, receiver_metadata, replace_dict = replacement_dict)
#> Error in aggregate_detections_feather(detections_data, receiver_metadata,     replace_dict = replacement_dict): unused argument (replace_dict = replacement_dict)