Skip to contents

Function to read the "what.measured" attribute of an existing generic_spct, generic_mspct, summary_generic_spct, data.frame or a derived-class object.

Usage

getWhatMeasured(x, ...)

what_measured(x, ...)

# Default S3 method
getWhatMeasured(x, ...)

# S3 method for class 'generic_spct'
getWhatMeasured(x, ...)

# S3 method for class 'summary_generic_spct'
getWhatMeasured(x, ...)

# S3 method for class 'data.frame'
getWhatMeasured(x, ...)

# S3 method for class 'generic_mspct'
getWhatMeasured(x, ..., idx = "spct.idx")

Arguments

x

a generic_spct object

...

Allows use of additional arguments in methods for other classes.

idx

character Name of the column with the names of the members of the collection of spectra.

Value

character vector An object containing a description of the data.

Methods (by class)

  • getWhatMeasured(default): default

  • getWhatMeasured(generic_spct): generic_spct

  • getWhatMeasured(summary_generic_spct): summary_generic_spct

  • getWhatMeasured(data.frame): data.frame

  • getWhatMeasured(generic_mspct): generic_mspct

Note

The method for collections of spectra returns the a tibble with a column of character strings.

Examples


what_measured(sun.spct)
#> [1] "sunlight, simulated"