extradata of a colorSpec object

Share:

Description

Retrieve or set the extradata of a colorSpec object.

Usage

1
2
3
## S3 method for class 'colorSpec'
extradata(x)
extradata(x) <- value

Arguments

x

a colorSpec R object

value

a data.frame with m rows, where m is the number of spectra in x.

Details

If the organization of x is not 'df.row', then extradata cannot be stored in x and the assignment is ignored, with a warning. First change the organization to 'df.row', and then assign the extradata.

If the organization of x is "df.row", but value does not have the right number of rows, the assignment is also ignored.

Value

extradata returns a data.frame with m rows, where m is the number of spectra in x. The rownames are set to the specnames of x. If there is no extra data then the number of columns in this data.frame is 0.

Note

If the assigment of value is successful, any existing extradata in x is discarded.

See Also

colorSpec, organization

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