Skip to contents

For each (replicate, Time, row, column), identifies the species with the highest total biomass and labels that cell accordingly. Ties are broken by alphabetical species name. Cells where total biomass across all species is zero are labelled "Non-vegetated" (rather than getting an arbitrary alphabetically-first species via the tiebreaker), matching community_label()'s behaviour.

Usage

leading_species(df)

Arguments

df

data.table or data.frame as returned by read_biomass_c_snapshots().

Value

A tibble with columns scenario, replicate, Time, row, column, label where label is the leading species name (or "Non-vegetated").