Published
- 1 min read
r matrix is symetric
The solution for this is noted below
r matrix is symetric
Solution
Z = matrix(c(3,1,4, 1,6,5, 4,5,2), nrow=3, ncol=3)
Z
>>> [,1] [,2] [,3]
>>> [1,] 3 1 4
>>> [2,] 1 6 5
>>> [3,] 4 5 2
isSymmetric(Z)
>>> [1] TRUE
Try other methods by searching on the site. That is if this doesn’t work