Description Usage Arguments Value Author(s) Examples

takes a matrix and copies its lower or upper triangle to generate a symmetric matrix

1 | ```
makeSymmetric(m, upper = TRUE)
``` |

`m` |
a square matrix |

`upper` |
(logical) copy upper triangle to lower triangle? (Alternatively, copy upper triangle to lower triangle.) |

a matrix with the same dimensions as `m`

, but made symmetric

Ben Bolker

1 2 3 4 | ```
m = matrix(1:9,nrow=3)
m
makeSymmetric(m)
makeSymmetric(m,upper=FALSE)
``` |

bbolker/cpcbp documentation built on May 10, 2017, 10:26 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.