Description Usage Arguments Details Examples
View source: R/MoveMatrixGene.R
Applys a radiation model to a population surface to calcualte relative flux of human movement between patches
1 | move.matrix.gene(unipix, hometime, type = "radiation")
|
unipix |
Universal pixel lookup table, see ?make.unipix |
hometime |
Paramter that controls the spatial concentration of movement |
type |
Human movement model type. Choose from "radiation", "gravity" or "exponential" |
Returns a 2 element list: i) a list of length equal to the number of patches. Each item in this list is a movement matrix (in vector form) with fluxes between the home patch and all other patches, ii) a movement matrix (in vector form) that sums total time allocation in each pixel (from residents and visitors)
1 2 3 4 | data(sgpop)
sgpop <- pop.process(sgpop, agg = 10)
unipix <- make.unipix(sgpop)
mlist <- move.matrix.gene(unipix, hometime= 0.1, type = "radiation")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.