Set new x-values

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
  ## Example of setting new x-values to the dataset
  data(cachexia)
  new.xvalues = 1:63
  cachexia = set_x_values(cachexia, new.xvalues, new.x.label = NULL)

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