Learn R Programming

specmine (version 1.0)

remove_data_variables: Remove data variables

Description

Remove data variables from the dataset.

Usage

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

Run this code
  ## Example of removing data variables
  data(cachexia)
  dataset = remove_data_variables(cachexia, c("Creatine","Serine"), 
	    by.index = FALSE)

Run the code above in your browser using DataLab