R/matrix_sum.R

Defines functions matrix_sum

#' Title
#'
#' @param x
#'
#' @return
#' @export
matrix_sum <- function(x) {
  if (is.matrix(x) != T) {stop("Not a matrix!")}
  return(sum(x))
}
bios2/netwerq documentation built on Dec. 19, 2021, 9:47 a.m.