as.matrix.pairwise_cor_spatial function

Convert pairwise_cor_spatial to matrix