gmeanRow: Geometric mean of rows of a matrix

View source: R/RcppExports.R

gmeanRowR Documentation

Geometric mean of rows of a matrix

Description

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)

qpmnguyen/teaR documentation built on April 4, 2022, 7:26 p.m.