Learn R Programming

specmine (version 1.0)

remove_samples: Remove samples

Description

Remove samples from the dataset.

Usage

remove_samples(dataset, samples.to.remove, rebuild.factors = T)

Arguments

dataset
list representing the dataset from a metabolomics experiment.
samples.to.remove
vector with the sample's names to remove.
rebuild.factors
if TRUE, rebuilds the factors from metadata.

Value

Returns the dataset with the specified samples removed.

Examples

Run this code
  ## Example of removing samples
  data(cachexia)
  cachexia = remove_samples(cachexia, c("PIF_178","PIF_090"))

Run the code above in your browser using DataLab