Check type of data

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
  ## Example of checking if the dataset is from spectral data
  data(cassavaPPD)
  is_spectra(cassavaPPD)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.