R/matrix_addition.R

Defines functions sum_matrix

Documented in sum_matrix

#' Sum a matrix
#'
#' This function sums up one numeric matrix
#'
#' @param matrix The matrix to be summed
#'
#' @return Integer
#' @export
sum_matrix <- function(matrix){

  # sum the matrix
  sum <- sum(matrix)

  return(sum)
}
aammd/netwerk documentation built on Dec. 18, 2021, 9:25 p.m.