Description Usage Arguments Value Author(s)
make a partition index for a SpatialStreamNetwork object so that it can be used with fast methods for big data
1 | mapi(ssn.object, nIndx, partMeth = "comp", set.seed.no = 1001)
|
ssn.object |
a SpatialStreamNetwork object, usually imported with SSN package |
nIndx |
the number of indexes (number of groups for partitioning) |
partMeth |
method for subsampling. Options are 'rand' for random, 'comp' for compact blocks using kmeans on coordinates, and 'zimm' for compact blocks with 10 Default is 'zimm'. |
set.seed.no |
set the random number seed so results are repeatable. |
an object of class "SpatialStreamNetwork", which is the same as the input ssn.object, except the points data.frame within now has a new field named partIndx which indexes the groups for partitioning.
Jay Ver Hoef
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.