quantile {vegsoup} | R Documentation |
Returns sample quantiles corresponding to the given probabilities for each species in each partition.
## S4 method for signature 'VegsoupPartition' quantile(x, probs = seq(0, 1, 0.25), na.rm = FALSE, names = TRUE, type = 7, coverscale = FALSE, ...)
x |
A |
probs |
numeric vector of probabilities. See |
na.rm |
Not used. A community matrix in vegsoup is not allowd to have |
names |
Not used. |
type |
Selecting one of the nine quantile algorithms. See |
coverscale |
Recode abundances and return orginal scale. Only applies if |
... |
Not used. |
If the input object has layers the summary statistics are calculated for each layer. If abundances are ordinal as.numeric(obj)
is used to obtain numeric values for calculation. If coverscale = TRUE
results are back converted to ordinal scale (e.g. Braun-Blanquet scale), otherwise will be returned as class midpoints as defiuned in coverscale(x)
. Note, suppling presence/absence data is supported, however, results may be meaningless.
An array with as many dimensions as length(probs)
containing the summary information of quantile
for a species by cluster matrix.
Roland Kaiser
boxplot.stats
, fivenum
, Coverscale
, Latex
.
require(vegsoup) data(barmstein) x <- VegsoupPartition(barmstein, k = 2) x1 <- quantile(x, probs = seq(0, 1, 0.25)) x1[ , , 3] x2 <- quantile(x, probs = c(0, 0.5, 1), coverscale = TRUE) x2[ , , 2] # probs[2]