Defining a helper function to check whether a supplied matrix is symmetric: helper function to check whether a supplied matrix is symmetric
is.sym(res)
res
Results of cor.assoc
TRUE/FALSE