R/colstack.R

Defines functions colstack

Documented in colstack

colstack <-
function(A,b)
# block stack b copies of matrix A columnwise
{
  B <- A[,rep(seq(ncol(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.