remove_data_variables: Remove data variables

Description Usage Arguments Value Examples

Description

Remove data variables from the dataset.

Usage

1
2
remove_data_variables(dataset, variables.to.remove, 
by.index = FALSE)

Arguments

dataset

list representing the dataset from a metabolomics experiment.

variables.to.remove

vector with the variables' names to remove.

by.index

if TRUE, the values of the variables.to.remove argument are indexes.

Value

Returns the dataset with the specified data variables removed.

Examples

1
2
3
4
5
  ## Example of removing data variables
  library(specmine.datasets)
  data(cachexia)
  dataset = remove_data_variables(cachexia, c("Creatine","Serine"), 
	    by.index = FALSE)

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