sp.tr.summary {mFD} | R Documentation |
Summarize Species x Traits data frame
Description
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.
Usage
sp.tr.summary(tr_cat, sp_tr, stop_if_NA = TRUE)
Arguments
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 |
Value
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. |
Author(s)
Camille Magneville and Sebastien Villeger
Examples
# 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)