getProd: Product of Study Variable Elements

Description Usage Arguments Details Value Dependencies Author(s)

Description

It computes the product of all values in its arguments.

Usage

1
getProd(x, naRm = FALSE)

Arguments

x

is the name of a study variable.

na.rm

logical (TRUE/FALSE). Remove, or not the missing values.

Details

If na.rm is FALSE an NA value in any of the arguments will cause a value of NA to be returned, otherwise NA values are ignored.

Logical true values are regarded as one, false values as zero. For historical reasons, NULL is accepted and treated as if it were numeric(0).

Value

The product as a numerical value.

Dependencies

getVarByName

Author(s)

Paula R. Costa e Silva


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