sample_stat | R Documentation |
This function will apply a statistical function to each sample.
sample_stat(sample, fun, single = FALSE, ...)
sample |
An object returned by the function |
fun |
A function returning descriptive statistics. See Details. |
single |
Logical. Should samples be combined in a single sample before statistics? |
... |
Additional arguments passed to fun. |
The statistical function should return a single value. Examples as
mean
, var
, sd
, min
, max
.
A matrix with the statistcs per sample and band (wavelenth).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.