create_movement_index | R Documentation |
Create A Movement Index Matrix
create_movement_index(
number_of_regions,
movement_pattern = 2,
movement_allow = NULL,
movement_disallow = NULL
)
number_of_regions |
|
movement_pattern |
|
movement_allow |
|
movement_disallow |
|
A square matrix of zeros and ones
# Neighbors (default)
create_movement_index(6)
# All pairwise movement
create_movement_index(6, 1)
# Neighbors plus 1-6, 2-5, and 5-2, but not 6-1
movement_allow <- matrix(c(1,6,2,5,5,2), ncol = 2, byrow = TRUE)
create_movement_index(6, 2, movement_allow)
# All pairwise movement but not 1-6
movement_disallow <- matrix(c(1,6), ncol = 2, byrow = TRUE)
create_movement_index(6, 1, movement_disallow = movement_disallow)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.