forceSymmetry_cpp | R Documentation |
Function to subset data for meta-analysis
forceSymmetry_cpp(mat)
mat |
matrix not-symmetric matrix |
matrix symmetric matrix (lower triangular of mat
is used)
## Force matrix to be symmetric (avoiding numerical problems)
n <- 4
X <- matrix(runif(n*n), nrow = n, ncol = n)
X <- forceSymmetry_cpp(mat = X)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.