Skip to contents

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

Usage

as.chroma_mspct(x, ...)

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

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

# S3 method for class 'chroma_spct'
as.chroma_mspct(x, ...)

# S3 method for class 'list'
as.chroma_mspct(x, ..., ncol = 1, byrow = FALSE)

Arguments

x

a list of spectral objects or a list of objects such as data frames that can be converted into spectral objects.

...

passed to individual spectrum object constructor

ncol

integer Number of 'virtual' columns in data

byrow

logical If ncol > 1 how to read in the data

Value

A copy of x converted into a chroma_mspct object.

Methods (by class)

  • as.chroma_mspct(default):

  • as.chroma_mspct(data.frame):

  • as.chroma_mspct(chroma_spct):

  • as.chroma_mspct(list):