R/colMins.R

Defines functions colMins

Documented in colMins

#' A function to compute the min by col
#'
#' Simpler helper function.
#'
#' @param x Input array.
#' @param margin Margin.
#' @return colMins(x, margin)
#' @export

colMins = function(x, margin=2){
              m = apply(x, MARGIN=c(margin), min, na.rm=TRUE)
              return(m)
             }  
             
ctross/STRAND documentation built on April 17, 2025, 3:53 a.m.