Answers for "r matrix is symetric"

1

r matrix is symetric

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
Posted by: Guest on February-02-2021

Browse Popular Code Answers by Language