Open ococrook opened 3 years ago
Can you eventually try to use concatenateSpectra
instead of c
? concatenateSpectra(out)
should work - or alternatively do.call("c", out)
? It might not be related, but I noticed that c
fails if spectra have names.
interestingly, do.call
works. Is concatenateSpectra
in the devel version?
Actually, I've never heard of Reduce
, so do.call
is what I usually use. The concatenateSpectra
is in the devel version - it does the same than c
, but it does not break when the provided list
of Spectra
has names.
Concatenating spectra is straightforward using
c
. However, I noticed some odd behaviour when concatenating repeatedly.Example:
out
is a list of 3 Spectra. Processing has been applied.Now the following doesn't work, and the error is quite obtuse.
Error in length(xi) <- max_len : cannot set length of non-(vector or list)
However, the following all work (!)
e.g.:
Thoughts?