Skip to contents

Reduces the landscape's initial communities to the distinct structures they contain – a structure being the set of (species, age) cohorts in a community, irrespective of which map codes carry it. On this landscape 444k communities collapse to roughly 1.7k structures with one or two cohorts, which is what makes a structure-aware calibration tractable at all.

Usage

extract_landscape_cohort_structures(ic, max_cohorts = 2L)

Arguments

ic

A data frame of initial communities with MapCode, SpeciesCode, and Age (the landis_ic_data_list target).

max_cohorts

Integer. Largest community size to retain.

Value

A tibble with one row per cohort: structure_id, n_cohorts, species, cohort_age, n_communities.

Details

n_communities is carried so downstream work can weight or subset structures by how much of the landscape they actually represent.