YEAR: 2022 63 | COPYRIGHT HOLDER: Jarrett Byrnes 64 |65 | 66 |
Calculates the minimum non-zero value of a distance matrix
66 |dmin(D)A distance matrix describing dissimilarity between functions.
A numeric
80 |Data from the a seagrass grazer diversity manipulation at the Virginia Institute of Marine Sciences. From Duffy et al. 2003 Ecology Letters.
66 |Duffy, J. E., J. P. Richardson, and E. A. Canuel. 2003. Grazer diversity effects on ecosystem functioning in seagrass beds. Ecology letters 6:637-645.
72 |See magrittr::%>% for details.
lhs %>% rhsA value or the magrittr placeholder.
A function call using the magrittr semantics.
The result of calling `rhs(lhs)`.
82 |Takes a data frame of functions and calculates the correlation-based 67 | distance between functions.
68 |cor_dist(adf)A data.frame or matrix of functions
A matrix
82 |Copyright (c) 2022 Jarrett Byrnes
65 |Permission is hereby granted, free of charge, to any person obtaining 66 | a copy of this software and associated documentation files (the 67 | “Software”), to deal in the Software without restriction, including 68 | without limitation the rights to use, copy, modify, merge, publish, 69 | distribute, sublicense, and/or sell copies of the Software, and to 70 | permit persons to whom the Software is furnished to do so, subject to 71 | the following conditions:
72 |The above copyright notice and this permission notice shall be 73 | included in all copies or substantial portions of the Software.
74 |THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, 75 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 76 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 77 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 78 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 79 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 80 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
81 |standardizeZScore Z-standardizes a vector.
standardizeZScore(afun)A vector of measurements of a function.
Returns a z-standardized vector.
80 |Centers a vector and divides it by its standard deviation.
84 |Data from the pan-European Biodepth grassland diversity manipulation
66 |Spehn, E. M., A. Hector, J. Joshi, M. Scherer-Lorenzen, B. Schmid, 72 | E. Bazeley-White, C. Beierkuhnlein, M. C. Caldeira, 73 | M. Diemer, P. G. Dimitrakopoulos, J. A. Finn, H. Freitas, P. S. Giller, 74 | J. Good, R. Harris, P. Hogberg, K. Huss-Danell, A. Jumpponen, J. Koricheva, 75 | P. W. Leadley, M. Loreau, A. Minns, C. P. H. Mulder, G. O'Donovan, S. J. Otway, 76 | C. Palmborg, J. S. Pereira, A. B. Pfisterer, A. Prinz, D. J. Read, E. D. Schulze, 77 | A. S. Siamantziouras, A. C. Terry, A. Y. Troumbis, F. I. Woodward, S. Yachi, and J. H. Lawton. 2005. 78 | Ecosystem effects of biodiversity manipulations in European grasslands. 79 | Ecological Monographs 75:37-63.
80 |eff_div effective number of functions
eff_div(df, q = 1)127 | 128 |
| df | 133 |A data frame of functions |
134 |
|---|---|
| q | 137 |Order of the diversity measure. Defaults to the 138 | Shannon case where q = 1. For Simpson, q=2. |
139 |
Returns a vector.
145 | 146 |Takes a data frame, variable names, and type of index and returns
149 | the effective number of functions - i.e., the equivalent number of
150 | functions if all were performing at the same level. See Jost 2006 and 2010.
151 | Internally, uses d
relevantSp Which species are being used in this analysis.
relevantSp(data, colnums = 26:128)A data frame with presence/abscence of different species.
Column numbers that will be assessed.
A vector of columns names.
82 |Which columns have values that are greater than zero.
86 |funcEven evenness factor across functions
funcEven(data, vars, q = 1)127 | 128 |
| data | 133 |A vector of measurements of a function. |
134 |
|---|---|
| vars | 137 |Name of function variables |
138 |
| q | 141 |Order of the diversity measure. Defaults to the 142 | Shannon case where q = 1. For Simpson, q=2. |
143 |
Returns a vector.
149 | 150 |Takes a data frame, variable names, and type of index and gets 153 | the evenness factor for the collection of values supplied as defined in 154 | Jost 2010
155 | 156 |Jost, L. 2006. Entropy and diversity. Oikos 113(2): 363-375.
159 | 160 | 161 |