set_x_values: Set new x-values

Description Usage Arguments Value Examples

Description

Set new x-values to the dataset

Usage

1
set_x_values(dataset, new.x.values, new.x.label = NULL)

Arguments

dataset

list representing the dataset from a metabolomics experiment.

new.x.values

vector with the new x-values.

new.x.label

string with the new x-label (can be NULL).

Value

Returns the dataset with the updated x-values.

Examples

1
2
3
4
5
  ## Example of setting new x-values to the dataset
  library(specmine.datasets)
  data(cachexia)
  new.xvalues = 1:63
  cachexia = set_x_values(cachexia, new.xvalues, new.x.label = NULL)

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