sumi
sums mass spectrometry intensity values, e.g. from a spectrum or
chromatogram. In contrast to the base R sum()
function this function
returns NA_real_
if all intensity values are NA
or if length(x)
is 0.
Arguments
- x
numeric
with intensity values to be summed up. Will be coerced tonumeric
usingas.double
.
Value
numeric(1)
representing the sum of values in x
. Always returns
a numeric (double) even if x
is an integer.