Learn R Programming

specmine (version 1.0)

set_sample_names: Set samples names

Description

Set new samples names to the dataset.

Usage

set_sample_names(dataset, new.sample.names)

Arguments

dataset
list representing the dataset from a metabolomics experiment.
new.sample.names
vector with the new samples names.

Value

Returns the dataset with the updated samples names.

Examples

Run this code
  ## Example of setting a new value label to the dataset
  data(cachexia)
  new.samples.names = as.character(1:77)
  cachexia = set_sample_names(cachexia, new.samples.names)

Run the code above in your browser using DataLab