Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

XYToDiffPpm

Express difference as ppm


Description

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.

Usage

XYToDiffPpm(x, y, nSign = NULL, silent = FALSE, callFrom = NULL)

Arguments

x

(numeric) typically for measured variable

y

(numeric) typically for theoretical/expected value (vector must be of same length as 'x')

nSign

(integer) number of significant digits in output

silent

(logical) suppres messages

callFrom

(character) allow easier tracking of message(s) produced

Value

numeric vector of (ratio-) ppm values

See Also

ratioToPpm for classical ppm

Examples

set.seed(2017); aa <- runif(10,50,900)
cbind(x=aa,y=aa+1e-3,ppm=XYToDiffPpm(aa,aa+1e-3,nSign=4))

wrMisc

Analyze Experimental High-Throughput (Omics) Data

v1.5.4
GPL-3
Authors
Wolfgang Raffelsberger [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.