R/matrix_addition.R

Defines functions sum_matrix

Documented in sum_matrix

#write a function that takes a numeric matrix and adds all the values

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

  return(sum)
}
Alex-Fuster/network documentation built on Dec. 17, 2021, 7:50 a.m.