rsp.build | R Documentation |
rsp function(s) to reconfigure data.frames (and similar
object classes) for use with data and functions in respeciate
.
rsp_build_x(x, profile_id, profile_name, species_name, species_id, value, ...)
rsp_build_simx(m, n = 1, ...)
x |
|
profile_name , profile_id |
( |
species_name , species_id |
( |
value |
( |
... |
(any other arguments) currently ignored. |
m |
|
n |
a numeric object, e.g. a |
rsp_build
s attempt to build and return a respeciate
-like
object that can be directly compared with data from respeciate
.
rsp_build_x
is the standard object builder.
rsp_build_simx
builds a simulation of an x
data set based on
the 'linear combination of profiles' model applied in conventional source
apportionment. (See below and rsp_pls_x
)
If you want to compare your data with profiles in the respeciate
archive,
you need respeciate
conventions when assigning species names and
identifiers. We are working on options to improve on this (and
very happy to discuss if anyone has ideas), but current best suggestion is:
(1) identify the respeciate
species code for each of the species in
your data set, and (2) assign these as species_code
when rsp_build
ing.
The function will then associate the species_name
from respeciate
species records.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.