R/landweb-species-units.R
landweb_species_sppEquiv.RdLike landweb_sppEquiv(), but the simulation column LandWeb holds each species' own LandR code,
and the merged group goes to LandWebGroup. landweb_species_units() then decides, per study
area, which species are common enough to simulate on their own.
landweb_species_sppEquiv(sppEquiv)A copy of the rows of sppEquiv that map to a LandWeb species, with columns LandWeb
(the species' LandR code), LandWebGroup (its group in landweb_species_map()) and
LandWebReport (its reporting group, landweb_report_map()).
The rows are those landweb_sppEquiv() keeps, in the same order. Hybrid white x Engelmann spruce
keeps its own code, Pice_eng_gla; landweb_species_units() puts it with whichever parent has more
cover in the study area.
Every row of a species carries the labels and colour of its first row, so LandR names it the same
way whichever row it looks up. Every row of Pinus contorta – shore pine, var. latifolia and the generic row – takes interior
lodgepole pine's (PINU_CON_LAT) labels, colour and LANDIS_traits code. LandR lists shore pine
first, so its labels would otherwise name the species, and shore pine's trait code has no rows for
the ecozones LandWeb reads. Western larch shares tamarack's colour in LandR and gets its own here,
since LandR::sppColors() falls back to a generated palette when two species share a colour.