50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

pedometrics (version 0.6-3)

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

Examples

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

Run the code above in your browser using DataLab