Skip to contents

This function computes the geometric mean by row of a numeric matrix

Usage

gmeanRow(X)

Arguments

X

A numeric matrix with n rows and p columns

Value

A numeric vector of the geometric mean of the matrix X with length n

Examples

ex <- matrix(rnorm(100), nrow = 10, ncol = 10)
ex <- abs(ex)
gmeanRow(ex)
#>  [1] 0.8165790 0.5761055 0.3790405 0.7484533 0.3321202 0.6691597 0.8373901
#>  [8] 0.2445767 0.5084704 0.2223044