m <- matrix(0, ncol = 5, nrow = 5)
symm(m, c(0, 1, 1, 1, 0, 0.5, 0.2, 0.3, 0.7, 0.1))
#> [,1] [,2] [,3] [,4] [,5]
#> [1,] 0.0 0.0 1.0 1.0 0.2
#> [2,] 0.0 0.0 1.0 0.0 0.3
#> [3,] 1.0 1.0 0.0 0.5 0.7
#> [4,] 1.0 0.0 0.5 0.0 0.1
#> [5,] 0.2 0.3 0.7 0.1 0.0