Description Usage Arguments Value Examples
Set new x-values to the dataset
1 | set_x_values(dataset, new.x.values, new.x.label = NULL)
|
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). |
Returns the dataset with the updated x-values.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.