View source: R/convert_chemospec.R
| convert_from_chemospec | R Documentation |
Auto-exported function: convert_from_chemospec
convert_from_chemospec(csobj, type = "undefined", description = "")
A dataset object converted from a ChemoSpec object, containing the transposed data matrix, metadata, sample names, and axis/unit labels.
csobj <- list(
data = matrix(c(10, 20, 30, 40), nrow = 2, byrow = TRUE),
freq = c(1, 2),
groups = c("A", "B"),
names = c("sample1", "sample2"),
unit = c("ppm", "intensity")
)
dataset <- convert_from_chemospec(csobj)
class(dataset)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.