Learn R Programming

specmine (version 3.1.6)

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
# NOT RUN {
  ## Example of getting the x-axis values as numbers
  library(specmine.datasets)
  data(propolis)
  xvalues.numeric = get_x_values_as_num(propolis)
# }

Run the code above in your browser using DataLab