R/matrix_combine.R

Defines functions matrix_combine

matrix_combine <-
function(A, B) {
  result <- rbind(cbind(A, array(0, dim = c(nrow(A), ncol(B)))),
              cbind(array(0, dim = c(nrow(B), ncol(A))), B))
  
  return(result)
}

Try the QuartPAC package in your browser

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

QuartPAC documentation built on Nov. 8, 2020, 6:58 p.m.