View source: R/model.matrix.diallel_v2.00.R
blockMatrixDiagonal | R Documentation |
This function takes a list of matrices and creates a block diagonal matrix. It is used to fit multi-environment diallel models
blockMatrixDiagonal(matList)
matList |
It is a list of matrices to be combined |
Returns a matrix object
Andrea Onofri, Niccolo' Terzaroli, Luigi Russi
Onofri, A., Terzaroli, N. & Russi, L. Linear models for diallel crosses: a review with R functions. Theoretical Applied Genetics (2020). https://doi.org/10.1007/s00122-020-03716-8
a <- matrix(1:16, 8, 2)
b <- matrix(1:9, 3, 3)
c <- list(a, b)
blockMatrixDiagonal(c)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.