R/rowstack.R

Defines functions rowstack

Documented in rowstack

rowstack <-
function(A,b)
# block stack b copies of matrix A rowwise
{
  B <- A[rep(seq(nrow(A)),b),]
  return(as.matrix(B))
}

Try the dmm package in your browser

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

dmm documentation built on Aug. 21, 2025, 5:57 p.m.