extradata of a colorSpec object
Retrieve or set the extradata of a colorSpec object.
## S3 method for class 'colorSpec' extradata(x) ## S3 replacement method for class 'colorSpec' extradata(x,add=FALSE) <- value
x |
a colorSpec object with M spectra |
value |
a |
add |
If |
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 ignored, with a warning.
extradata(x)
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.
Do not confuse extradata
and metadata
.metadata
is unstructured data that is attached to the entire colorSpec object.
extradata
is structured data, with a row of data for each spectrum in the object.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.