R/diagModify.R

Defines functions diagModify

Documented in diagModify

#' change the diag function in order to complain with pipe operator
#' @param x a matrix
#' @param diagValue a numeric value or a vector
#' @return a matrix
#' @export
diagModify=function(x,diagValue){
  diag(x)=diagValue
  return(x)
}
zlfccnu/econophysics documentation built on Feb. 23, 2022, 10:22 p.m.