Description Usage Arguments Value Note Author(s) See Also
View source: R/Local_fun_dist.R
Creates a Gower distance matrix using the method of Pavoine et al 2009 to handle many types of data
1 2 | make_local_trait_dist(focal.species, community.data, trait.data, traits,
scale)
|
focal.species |
The focal species or plot identifier that you want to use to create a the phylogeny |
community.data |
The community data file. Each observation
of a species in a community should be its own row. For now,
the column specifiy which community is which is called
|
trait.data |
A data frame that contains trait data information. Currently, this only supports names from Levin et al 2017, but will hopefully soon be generalized to include all trait names listed in TRY (Kattge et al 2017). |
traits |
A character vector of trait names that should match the names
in |
scale |
The spatial scale at which to analyze the data |
An object of class dist
.
These
can easily be coerced to other data structures, but must
be coerced to a matrix
first.
Sam Levin
make_regional_trait_dist
, make_local_trait_ktab
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.