Query class of spectrum objects

Description

Functions to check if an object is of a given type of spectrum, or coerce it if possible.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19

Arguments

x

an R object.

Value

These functions return TRUE if its argument is a of the queried type of spectrum and FALSE otherwise.

Note

Derived types also return TRUE for a query for a base type such as generic_spct.

Examples

1
2
3
4

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.