collapse/bind several hyperSpec objects into one object
Usage
collapse(..., short.log = TRUE, short = "collapse",
user = NULL, date = NULL)
Arguments
...
hyperSpec objects to be collapsed into one
object. Instead of giving several arguments, a list with
all objects to be collapsed may be given.
short.log,short,user,date
deprecated
Value
a hyperSpec object
Details
The spectra from all objects will be put into one object.
The resulting object has all wavelengths that occur in
the input objects. Data points corresponding to
wavelengths not in the original spectrum will be set to
NA. Extra data is combined in the same manner.
See Also
merge to merge hyperSpec objects that
share wavelengths but contain different spectra,
rbind, and
rbind.fill for
barbiturates [1:3]
barb <- collapse (barbiturates [1:3])
barb
a <- barbiturates [[1]]
b <- barbiturates [[2]]
c <- barbiturates [[3]]
a
b
ccollapse (a, b, c)