Description Usage Arguments Details Value Dependencies Author(s)
It computes the sum of all values into a numeric vector.
1 | getHistogram(x)
|
x |
numeric vector. |
Logical true values are regarded as one, false values as zero. For historical reasons, NULL is accepted and treated as if it were integer(0). Loss of accuracy can occur when summing values of different signs: this can even occur for sufficiently long integer inputs if the partial sums would cause integer overflow. Where possible extended-precision accumulators are used, but this is platform-dependent.
The sum. If all of vakues are of type integer or logical, then the sum is integer, and in that case the result will be NA (with a warning) if integer overflow occurs. Otherwise it is a length-one numeric or complex vector.
getVarByName
Paula R. Costa e Silva
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.