R/RcppExports.R

Defines functions rowMinCpp

Documented in rowMinCpp

# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

#' Return the minimum value in each row of a numeric matrix
#' 
#' This function returns the minimum value in each row of a numeric matrix.
#'
#' @param 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.
#' @return A numeric vector with the minimum value of each row if the matrix.
#' @author Alessandro Samuel-Rosa \email{alessandrosamuelrosa@@gmail.com}
#' @seealso `rowMins()` in \url{https://cran.r-project.org/package=matrixStats}.
#' @keywords univar
#' @import Rcpp
#' @export
#' @examples
#' x <- matrix(rnorm(20), nrow = 5)
#' rowMinCpp(x)
rowMinCpp <- function(x) {
    .Call('_pedometrics_rowMinCpp', PACKAGE = 'pedometrics', x)
}

Try the pedometrics package in your browser

Any scripts or data that you put into this service are public.

pedometrics documentation built on June 19, 2022, 9:05 a.m.