View source: R/4_plotting_helpers.R
spStat_ldf | R Documentation |
Calculate a summary statistic of spectroscopic data in
hyperSpec
object and return the result as a
long-format data frame.
spStat_ldf(sp, by, FUN, ..., var_names = NULL, name_if_by_is_NULL = "All Data")
sp |
|
by |
(string) name of grouping variable. |
FUN |
Function of summray statistics. |
... |
Arguments to be passed to |
var_names |
Names of summary statisticsm generated with |
name_if_by_is_NULL |
(string) Name of whole dataset in case |
A long-format data frame.
spStat_ldf(Spectra2, FUN = mean)
spStat_ldf(sp, "gr", FUN = quantile, probs = c(0,1),
var_names = c("ymin","ymax"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.