R/matrix_addition.R

Defines functions sum_matrix

Documented in sum_matrix

#' Test
#'
#' @param x Matrix to be tested
#'
#' @return The sum
#' @export
#'
#' @examples
sum_matrix <- function(x) {
  # summing the matrix
  if (is.matrix(x) != T) {stop("Not a matrix!")}
  return(sum(x))
}
AlienorStahl/netwerk documentation built on Dec. 17, 2021, 8:41 a.m.