## load library
library("MALDIquant")
## create example matrix
m <- matrix(c(1, 2, 3,
3, 6, 9),
nrow=2, byrow=TRUE, dimnames=list(paste0("samples", 1:2),
paste("peaks", LETTERS[1:3])))
## show matrix
m
## show calibrated matrix
calibrate(m)Run the code above in your browser using DataLab