Learn R Programming

specmine (version 1.0)

replace_metadata_value: Replace metadata's value

Description

Replace a metadata's variable value of a sample.

Usage

replace_metadata_value(dataset, variable, sample, new.value)

Arguments

dataset
list representing the dataset from a metabolomics experiment.
variable
metadata's variable.
sample
name of the sample.
new.value
new value of the metadata's variable.

Value

Returns the dataset with the metadata updated.

Examples

Run this code
  ## Example of replacing metadata's variable value of a sample
  data(cachexia)
  dataset = replace_metadata_value(cachexia, "Muscle.loss", "PIF_178", 
	    "control")

Run the code above in your browser using DataLab