merge_overlapping_locations: Aggregate Locations by Position

merge_overlapping_locationsR Documentation

Aggregate Locations by Position

Description

Falling Fruit does not support overlapping locations. This function merges locations with the same lat, lng or address by the methods described in Details.

Usage

merge_overlapping_locations(dt, ...)

Arguments

dt

Locations data.

...

Arguments passed to build_location_description.

Details

The following aggregation is applied to all non-missing values for each field:

  • ids, types, author - Comma-delimited list of all unique values.

  • description - Result of build_location_description(types = description, notes = notes).

  • season.start - Minimum value.

  • season.stop - Maximum value.

  • unverified - True ('x') if any are true.

  • yield.rating, quality.rating - Rounded mean of all values.

  • photo.url - First value.

See Also

Other location import functions: apply_match_table, build_match_table, match_names_to_ff_types, read_locations, write_locations_for_import


falling-fruit/fruitr documentation built on Dec. 21, 2024, 8:32 p.m.