convert_from_chemospec: Auto-exported function: convert_from_chemospec

View source: R/convert_chemospec.R

convert_from_chemospecR Documentation

Auto-exported function: convert_from_chemospec

Description

Auto-exported function: convert_from_chemospec

Usage

convert_from_chemospec(csobj, type = "undefined", description = "")

Value

A dataset object converted from a ChemoSpec object, containing the transposed data matrix, metadata, sample names, and axis/unit labels.

Examples

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)

specmine documentation built on Aug. 5, 2026, 5:06 p.m.