| split_spec | R Documentation |
Convert a list of Open Specy objects into one-spectrum objects, or split a file-backed map into lightweight region views.
split_spec(x, ...)
## Default S3 method:
split_spec(x, ...)
x |
a list of OpenSpecy objects or another supported spectral object. |
... |
arguments passed to class methods. |
Function will accept a list of Open Specy objects of any length and will split them to their individual components. For example a list of two objects, an Open Specy with only one spectrum and an Open Specy with 50 spectra will return a list of length 51 each with Open Specy objects that only have one spectrum.
For ordinary inputs, a list of Open Specy objects each with one spectrum.
For FileSpecs, a named list of descriptor-only FileSpecs region views
that share the immutable source and cache.
Zacharias Steinmetz, Win Cowger
c_spec() for combining OpenSpecy objects.
collapse_spec() for summarizing OpenSpecy objects.
data("test_lib")
data("raman_hdpe")
listed <- list(test_lib, raman_hdpe)
test <- split_spec(listed)
test2 <- split_spec(list(test_lib))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.