remove_samples: Remove samples

Description Usage Arguments Value Examples

Description

Remove samples from the dataset.

Usage

1
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

1
2
3
4
  ## Example of removing samples
  library(specmine.datasets)
  data(cachexia)
  cachexia = remove_samples(cachexia, c("PIF_178","PIF_090"))

specmine documentation built on Sept. 21, 2021, 5:06 p.m.