Weighted-mean aggregation of cell_metric across a set of cells;
returns a flower-plot-ready tibble with columns
metric_key, score, component, even.
Arguments
- con
a DBI connection (e.g. from
sdm_db_con())- cells
a tibble from
cells_in_polygon(), with columnscell_idandpct_covered- metric_pattern
regex to filter
metric.metric_key(default:"_ecoregion_rescaled$")