photobiology (version 0.11.2)

class_spct: Query which is the class of a spectrum

Description

Extract class information from a generic spectrum.

Usage

class_spct(x)

Value

A character vector containing all matching xxxx.spct S3 classes.

Arguments

x

any R object

Details

The value returned is equivalent to the set intersection of the value returned by class(x) and the value returned by spct_classes, but preserving the order of the members of the character vector.

Examples

Run this code
class_spct(sun.spct)
class(sun.spct)

Run the code above in your browser using DataLab