Learn R Programming

translateSPSS2R (version 1.0.0)

computeLngamma: Computes the logarithm of the gamma function

Description

Helper Function for xpssCompute. R Implementation of the SPSS LNGAMMA Function.

Usage

computeLngamma(x)

Arguments

x
an atomic numeric or numeric vector or numeric matrix.

Value

returns a numeric, numeric vector or matrix with the logarithm of the gamma function values of the input data.

See Also

lgamma

Examples

Run this code
xpssCompute(x = fromXPSS, variables = "V5",fun = "computeLngamma")

Run the code above in your browser using DataLab