R/expandR.R

Defines functions expandR

Documented in expandR

expandR <-
function(R, n_i){
  COL <- NULL
  for(j in 1:nrow(R)){
    ROW <- NULL
    for(i in 1:ncol(R)){
      ROW <- cbind(ROW, diag(R[i, j], n_i))
    }
    COL <- rbind(COL, ROW)
  }
  COL
}

Try the MargCond package in your browser

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

MargCond documentation built on May 1, 2019, 8:46 p.m.