Description Usage Arguments Value Author(s) Examples
Make the matrix symmetric by making all "mirrored" positions consistent. A variety of methods are provided to make the matrix symmetrical.
1 2  symmetricize(matrix, method = c("max", "min", "avg", "ld", "ud"),
adjacencyList = FALSE)

matrix 
The matrix to make symmatric 
method 
The method to use to make the matrix symmetric. Default is to take the maximum.

adjacencyList 
Logical. If false, returns the symmetric matrix (the same format as the input). If true, returns an adjacency list representing the upper triangular portion of the adjacency matrix with addressing based on the row.names of the matrix provided. 
The symmetric matrix
Jeffrey D. Allen Jeffrey.Allen@UTSouthwestern.edu
1 2 3 4 5 6 7 8  #Create a sample 3x3 matrix
mat < matrix(1:9, ncol=3)
#Copy the upper diagonal portion to the lower
symmetricize(mat, "ud")
#Take the average of each symmetric location
symmetricize(mat, "avg")

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.