Skip to contents

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

Usage

as.chroma_spct(x, ...)

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

Arguments

x

an R object.

...

Arguments passed on to setChromaSpct

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).

Value

A copy of x converted into a chroma_spct object.