R/matrix2bdiag.R

Defines functions matrix2bdiag

Documented in matrix2bdiag

matrix2bdiag <- function(x, ...) {
  tmp <- split(as.matrix(x), row(x))
  # Use bdiagMat() to handle string matrices
  out <- bdiagMat(lapply(tmp, vec2symMat, ...))
  as.matrix(out)
}

Try the metaSEM package in your browser

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

metaSEM documentation built on Sept. 30, 2024, 9:21 a.m.