Functions for padding respeciate objects.
rsp_pad pads a supplied respeciate profile data set
with profile and species meta-data.
rsp_pad(rsp, pad = "standard", drop.nas = TRUE)A respeciate object, a data.frame of respeciate
profiles.
character, type of meta data padding, current options
'profile', 'species', 'weight', 'reference',
'standard' (default; all but 'reference'), and 'all'
(all).
logical, discard any rows where the respeciate
species amount column .pc.weight is NA, default TRUE.
rsp_pad returns supplied respeciate data set, with
requested additional profile and species meta-data added as additional
data.frame columns. See Note.
Some data handling can remove respeciate meta-data,
and rsp_pads provide a quick rebuild/repair. For example,
rsp_dcasting to a (by-species or by-profile) widened
form strips some meta-data, and padding is used as part of the
rsp_melt_wide to re-add this meta-data
when returning the data set to its standard long form.
rsp_pad