R/landweb-species.R
landweb_sppEquiv.RdAdds a LandWeb column to a LandR-style species equivalency table, giving
each SCANFI species its LandWeb species group, and relabels the groups that
merge several species.
landweb_sppEquiv(sppEquiv)A copy of sppEquiv restricted to the rows that map to a LandWeb
species group, by SCANFI code or through their species (see Details), with
a new LandWeb column. Rows mapped by SCANFI code come first. It is an
error for no row to map (see landweb_require_species()).
Groups that merge species take a group label in EN_generic_short,
EN_generic_full and Leading: Abie_spp, Lari_spp, Pice_gla,
Pinu_spp, Popu_spp and Pseu_men. Abie_spp is labelled "Fir",
although western redcedar and western hemlock are merged into it too (see
landweb_species_map()). Pice_mar holds one species, so its row keeps its
own labels.
Consumers such as Biomass_core's leading-vegetation maps look a group's
label up from its first row, so a group without a label would be named after
whichever of its species comes first.
A row without a SCANFI code is kept when another row of the same species
(the same LandR code) maps, and joins that row's group. LandR lists some
species under a generic name as well as by variety, and gives only one of
them a SCANFI code: the generic Pinus contorta row has none, while var.
latifolia and var. contorta do. Generic Pinus contorta takes its group
and colour from var. latifolia (PINU_CON_LAT, interior lodgepole pine), not
from whichever variety comes first. Biomass_speciesParameters assigns PSP
trees to groups by their Latin_full in this table and discards trees whose
name is missing, and the NFI records lodgepole pine as Pinus contorta and
black cottonwood as Populus trichocarpa. Without these rows neither
contributed to the growth curves fitted for Pinu_spp and Popu_spp. A row
with a SCANFI code that LandWeb does not use (coastal Douglas-fir,
PSEU_MEN_MEN) stays out.
These rows add no SCANFI layer, and they come after the rows mapped by SCANFI
code, so the first row of each group is unchanged. One with no colorHex
takes the colour of its species' mapped row: LandR::sppColors() uses the
table's colours only when every row has one.