Learn R Programming

pedometrics (version 0.12.1)

rowMinCpp: 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.

Value

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

Details

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

See Also

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

Examples

Run this code
# NOT RUN {
x <- matrix(rnorm(20), nrow = 5)
rowMinCpp(x)
# }

Run the code above in your browser using DataLab