Description Usage Arguments Value Examples
Compare two regions of a dataset by samples.
1 2 | compare_regions_by_sample(dataset1, dataset2, fn.to.apply,
samples = NULL, ...)
|
dataset1 |
list representing the dataset from a metabolomics experiment. |
dataset2 |
list representing the dataset from a metabolomics experiment. |
fn.to.apply |
function to apply (e.g. mean, max, min). |
samples |
if defined restricts the application to a given set of samples. |
... |
additional parameters to apply.by.sample function. |
Returns a data.frame with the results of the function applied to the samples and the ration between the two datasets.
1 2 3 4 5 6 7 | ## Example of comparing regions by sample
library(specmine.datasets)
data(cachexia)
subset1 = subset_x_values(cachexia, 1:31, by.index = TRUE)
subset2 = subset_x_values(cachexia, 32:63, by.index = TRUE)
comp.regions.result = compare_regions_by_sample(subset1, subset2,
mean)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.