Each attribute is by default copied to a column in a tibble
or a data.frame
. If the argument for tb
is NULL
, as by
default, a new tibble
will be created. If an existing
data.frame
or tibble
is passed as argument, new columns are
added to it. However, the number of rows in the argument passed to
tb
must match the number of spectra in the argument passed to
mspct
. Only in the case of methods add_attr2tb()
and
spct_metadata()
if the argument to col.names
is a named
vector, the names of members are used as names for the columns created.
This permits setting any valid name for the new columns. If the members of
the vector passed to col.names
have no names, then the value is
interpreted as the name of the attributes to add, and also used as name for
the new column.
Valid values accepted as argument to col.names
are NULL
, or a
vector containing one or more of the following character
strings:
"lon"
, "lat"
, "address"
, "geocode"
,
"where.measured"
, "when.measured"
, "what.measured"
,
"how.measured"
, "comment"
, "normalised"
,
"normalized"
, "scaled"
, "bswf.used"
,
"instr.desc"
, "instr.settings"
, solute.properties
,
"filter.properties"
, "Tfr.type"
, "Rfr.type"
,
"time.unit"
.