# NOT RUN {
## 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)
# }
Run the code above in your browser using DataLab