powered by
Replace a data value for a new value on the dataset.
replace_data_value(dataset, x.axis.val, sample, new.value, by.index = FALSE)
list representing the dataset from a metabolomics experiment.
variable index or name.
sample name.
new value to replace the old value.
boolean value to indicate if the x.axis.val is an index or not.
Returns the dataset with the data value replaced.
# NOT RUN { ## Example of replacing a data value from the dataset data(cachexia) dataset = replace_data_value(cachexia, "Creatine", "PIF_178", 10.3, by.index = FALSE) # }
Run the code above in your browser using DataLab