ds.arMean: Arithmetic mean.

Description Usage Arguments Details Value Dependencies Author(s) Examples

Description

Computes the arithmetic mean.

Usage

1
ds.arMean(x = NULL, datasources = NULL)

Arguments

x

a character, the name of study variable.

datasources

a list of opal object(s) obtained after login in to opal servers; these objects hold also the data assign to R, as data frame, from opal datasources.

Details

The ∑{x} and the sample size is computed is computed for each data node. Combines these values by the equation {∑{dn}}/{l}, where ∑{dn} is the sum of the sums of nodes, and l is the global sample size. Requires the functions getSum and getLength from server side.

Value

return a numeric value.

Dependencies

getSum, getLength

Author(s)

Paula Raissa Costa e Silva

Examples

1
2
3
{
ds.arMean('D$birth_weight')
}

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