powered by
XYToDiffPpm transforms offset (pariwise-difference) between 'x' & 'y' to ppm (as normalized difference ppm, parts per million, ie (x-y)/y ). This type of expressiong differences is used eg in mass-spectrometry.
XYToDiffPpm
XYToDiffPpm(x, y, nSign = NULL, silent = FALSE, callFrom = NULL)
(numeric) typically for measured variable
(numeric) typically for theoretical/expected value (vector must be of same length as 'x')
(integer) number of significant digits in output
(logical) suppres messages
(character) allow easier tracking of message(s) produced
numeric vector of (ratio-) ppm values
ratioToPpm for classical ppm
ratioToPpm
# NOT RUN { set.seed(2017); aa <- runif(10,50,900) cbind(x=aa,y=aa+1e-3,ppm=XYToDiffPpm(aa,aa+1e-3,nSign=4)) # }
Run the code above in your browser using DataLab