Description Usage Arguments Details Value Author(s) Examples
NEEDS TO REWRITE!!!
Function snc
calculates weighted mean of sample attributes, using matrix of species composition (com
) and one or several sample attributes (env
).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
com |
Matrix or data.frame with species composition matrix (samples x species) |
env |
Vector, matrix or data.frame with env. variables (samples x env). This can be |
wstand |
Logical. Should be the values in |
object, x |
Object of the class |
i, j |
Subscripts of the matrix of the class "snc" (rows and columns). |
... |
Other arguments passed into |
long |
should summary return long output? (TRUE vs FALSE) |
what |
Attributes extracted from the object of class |
Function [.snc]
is for extracting specified rows and columns from matrix of class snc
. As a side effect, resulting object will have concatenated the com
and env
attributes to match the dimension of the resulting matrix. This function is only for extracting the parts of snc
object, not for replacing; attempt to replace will work, but will break the inner structure.
Generic function extract
with argument what
applied on object of class "snc"
extracts the original species composition matrix or sample attribute matrix, respectively, which were used to calculate weighted means.
Object of class "snc"
, which has print
, summary
, as.matrix
and '[.'
methods. Object of "snc"
class contains the matrix of calculated weighted means of sample attributes (species niche centroids) for each species (species x snc) and three attributes: com
, species x sample matrix from which the weighted mean was calculated, env
, samples x env. variables matrix with sample attributes, and wstand
, logical value specifying whether env.variables were weighted-standardized prior to calculation of SNC (weights are row sums of com
). All weighted means of sample attributes must be based on the same species x sample matrix with the same number of species.
David Zeleny (zeleny.david@gmail.com)
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.