ds.sum: Sum of Study Variable Elements

Description Usage Arguments Details Value Dependencies Author(s) Examples

Description

Computes the sum of values from a given study variable.

Usage

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

Arguments

x

a character, the name of a study variable.

datasources

a list of a list of data connection parameters. If it is a DataSHIELD connection, datasources is 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. If the data is csv files, datasources is a list of paths and filenames. If the data is a sql connection, datasources is a list of conection, database name, variables and query.

Details

It is a wrapper for the server side function getSum.

Value

return a numeric value.

Dependencies

getSum

Author(s)

Paula Raissa Costa e Silva

Examples

1
ds.sum('D$birth_weight')

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