Learn R Programming

specmine (version 3.1.6)

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
# NOT RUN {
  ## Example of setting a new value label to the dataset
  library(specmine.datasets)
  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