get_x_values_as_num: Get x-axis values as numbers

Description Usage Arguments Value Examples

Description

Get the x-axis values from the dataset as numbers.

Usage

1

Arguments

dataset

list representing the dataset from a metabolomics experiment.

Value

Returns a numeric vector with the x-axis values, if the variable labels are not all numeric then an error message is shown.

Examples

1
2
3
4
  ## Example of getting the x-axis values as numbers
  library(specmine.datasets)
  data(propolis)
  xvalues.numeric = get_x_values_as_num(propolis)

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