rowMinCpp: Return the minimum value in each row of a numeric matrix

View source: R/RcppExports.R

rowMinCppR Documentation

Return the minimum value in each row of a numeric matrix

Description

This function returns the minimum value in each row of a numeric matrix.

Usage

rowMinCpp(x)

Arguments

x

Numeric matrix with two or more rows and/or columns.

Details

This function is implemented in C++ to speed-up the computation time for large matrices.

Value

A numeric vector with the minimum value of each row if the matrix.

Author(s)

Alessandro Samuel-Rosa alessandrosamuelrosa@gmail.com

See Also

rowMins() in https://cran.r-project.org/package=matrixStats.

Examples

x <- matrix(rnorm(20), nrow = 5)
rowMinCpp(x)

samuel-rosa/pedometrics documentation built on June 21, 2022, 11:32 p.m.