getHistogram: Sum of Study Variable Elements

Description Usage Arguments Details Value Dependencies Author(s)

Description

It computes the sum of all values into a numeric vector.

Usage

1

Arguments

x

numeric vector.

Details

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.

Value

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.

Dependencies

getVarByName

Author(s)

Paula R. Costa e Silva


paularaissa/distStatsServer documentation built on June 19, 2019, 12:43 a.m.