Skip to contents

Return a copy of an R object with its class set to a given type of spectrum.

Usage

as.object_spct(x, ...)

# Default S3 method
as.object_spct(
  x,
  Tfr.type = c("total", "internal"),
  Rfr.type = c("total", "specular"),
  ...
)

Arguments

x

an R object.

...

Arguments passed on to setObjectSpct

multiple.wl

numeric Maximum number of repeated w.length entries with same value.

idfactor

character Name of factor distinguishing multiple spectra when stored longitudinally (required if mulitple.wl > 1).

strict.range

logical Flag indicating whether off-range values result in an error instead of a warning.

Tfr.type

character Either "total" or "internal".

Rfr.type

character A string, either "total" or "specular".

Value

A copy of x converted into a object_spct object.