Skip to contents

Return a copy of an R object with its class set to a given type of spectrum, or convert an R object of a different class into one of the spectral classes.

Usage

as.generic_spct(x, ...)

# Default S3 method
as.generic_spct(x, ...)

Arguments

x

an R object

...

other arguments passed to "set" functions

Value

A copy of x converted into a generic_spct object.

Details

Data frames, tibbles and similar objects are accepted as input if the column names are those expected by the matching class setting functions. An exception, is that an additional method specialization for conversion of waveband objects into response_spct objects is also defined.

Methods (by class)

  • as.generic_spct(default):