R/colMaxs.R

Defines functions colMaxs

Documented in colMaxs

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

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