symMat | R Documentation |
Transform a 3 column pairwise dataframe to a symmetric matrix
symMat(x, y, z)
x |
becomes the rownames |
y |
becomes the colnames |
z |
becomes the content of the matrix |
matrix
x <- c(2,3,4,3,4,4)
y <- c(1,1,1,2,2,3)
z <- seq_along(y)
symMat(x,y,z)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.