View source: R/count_connections.R
count_connections | R Documentation |
Count Times Precincts are Connected
count_connections(dm, normalize = FALSE)
dm |
district membership matrix |
normalize |
Whether to normalize all values by the number of columns. |
matrix with the number of connections between precincts
set.seed(1)
dm <- matrix(sample(1:2, size = 100, TRUE), 10)
count_connections(dm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.