View source: R/matrix_summaries.R
sp.tr.summary | R Documentation |
This function computes a summary data helping to choose the type of analysis
you can do with your data. For this function to work, there must be no NA in
your sp_tr
data frame.
sp.tr.summary(tr_cat, sp_tr, stop_if_NA = TRUE)
tr_cat |
a data frame containing three columns for each trait (rows):
|
sp_tr |
a data frame of traits values (columns) for each species (rows). Note that species names must be specified in the row names. |
stop_if_NA |
a logical value indicating whether the process should stop
if there is some NA in the |
If there is no fuzzy-coded trait, a three-elements list with:
tr_summary_list |
a table summarizing for each trait the number of species per modality for non-continuous trait and min, max, mean, median, and quartiles for continuous traits. |
tr_types |
a list containing traits type. |
mod_list |
a list containing modalities for all traits. |
If there is fuzzy-coded trait, a four-elements list with:
tr_summary_non_fuzzy_list |
a table summarizing for each trait the number of species per modality for non-continuous trait and min, max, mean, median, and quartiles for continuous traits. |
tr_summary_fuzzy_list |
a table summarizing for each subtrait min, max, mean, median and quartiles |
tr_types |
a list containing traits type. |
mod_list |
a list containing modalities for non-continuous trait. |
Camille Magneville and Sebastien Villeger
# Load Species x Traits data
data('fruits_traits', package = 'mFD')
# Load Traits x Categories data
data('fruits_traits_cat', package = 'mFD')
# Summarize Species x Traits data
mFD::sp.tr.summary(tr_cat = fruits_traits_cat, sp_tr = fruits_traits)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.