is_spectra: Check type of data

Description Usage Arguments Value Examples

Description

Check if the dataset is from spectral data where x.values are numeric.

Usage

1
is_spectra(dataset)

Arguments

dataset

list representing the dataset from a metabolomics experiment.

Value

Returns a boolean indicating if the dataset is from spectral data or not.

Examples

1
2
3
4
  ## Example of checking if the dataset is from spectral data
  library(specmine.datasets)
  data(propolis)
  is_spectra(propolis)

specmine documentation built on Sept. 21, 2021, 5:06 p.m.