View source: R/manage_traits.R
manage_traits | R Documentation |
A function to select traits based on taxonomic distance.
manage_traits(x, method = "nearest+-", traceB = FALSE)
x |
Result of |
method |
Can be |
traceB |
If |
Method nearest
selects the traits belonging to the nearest taxa irrispective of their position
in the taxonomic tree.
Method nearest+
selects the traits belonging to the nearest taxa that have a taxonomic level equal or finer
than the target one. Method nearest-
does the opposite.
Method nearest+-
selects the traits belonging to the nearest taxa giving priority to taxa having
taxonomic level equal or finer than the target one. Method nearest-+
does the opposite.
data(macro_ex)
data_bio <- as_biomonitor(macro_ex)
data_agr <- aggregate_taxa(data_bio)
data_ts <- assign_traits(data_agr)
# select only the nearest traits
data_ts_sub <- manage_traits(data_ts, method = "nearest+-")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.