spStat_ldf.Rd
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")
hyperSpec
object.
(string) name of grouping variable.
Function of summray statistics.
Arguments to be passed to FUN
.
Names of summary statisticsm generated with FUN
.
(string) Name of whole dataset in case by
is NULL. Default is "All Data"
A long-format data frame.