Learn R Programming

specmine (version 3.1.6)

remove_samples: Remove samples

Description

Remove samples from the dataset.

Usage

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

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
# NOT RUN {
  ## Example of removing samples
  library(specmine.datasets)
  data(cachexia)
  cachexia = remove_samples(cachexia, c("PIF_178","PIF_090"))
# }

Run the code above in your browser using DataLab