Corrections are a special subset of calculations which by default write over the elements that they recalculate.
1 2 3 4 5 6 7 8 9
(Required data series typically vectors) The input to use when makin a correction. This
is typically a vector or element in either a
(Optional) Other arguments, typically passed on.
correctInput is a general correction handlers. It accepts an
input and a function,
correction, which it applies to
zeroNegatives resets any negative values in an
calcPack2 is an alternative version of
associated help for details.
With the exception of
calcPack2, all the above functions generate
By default, corrections return results in the format of the
input. So: If
inputs are supplied as vectors, the answer is returned as a vector; If inputs are
supplied in a
pems object, that
pems object is returned with the answer
added in. This behaviour is enabled by the default
output = "special". Output
type can be forced by declaring
ouput in the function call. Options
"pems" return vectors, data.frames and
pems objects, respectively.
Unlike other calculations, corrections automatically replace the associated
input, unless prevented (using
overwrite = FALSE).
This function management is handled by
calcPack. These are front and back end
function add-ins that anyone can use as a 'minimal code' means of
integrating third-party and
calcChecks documentation for details.
Unit management is by
convertUnits. See associated help
documentation for details.
References in preparation.
1 2 3 4 5 6 7
########### ##example 1 ########### #basic usage zeroNegatives(-10:10) #etc
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.