R/part.add.R

Defines functions part.add

Documented in part.add

part.add <-
function(x,p,prow,pcol){
# part.add() - add a partition p to a matrix x at prow,pcol
  x[prow : (prow + nrow(p) -1), pcol : (pcol + ncol(p) -1)] <- p[,]
  return(x)
}

Try the dmm package in your browser

Any scripts or data that you put into this service are public.

dmm documentation built on July 26, 2023, 5:23 p.m.