Learn R Programming

specmine (version 1.0)

get_x_values_as_num: Get x-axis values as numbers

Description

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

Usage

get_x_values_as_num(dataset)

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

Run this code
  ## Example of getting the x-axis values as numbers
  data(cassavaPPD)
  xvalues.numeric = get_x_values_as_num(cassavaPPD)

Run the code above in your browser using DataLab