mapi: make a partition index for a SpatialStreamNetwork object

Description Usage Arguments Value Author(s)

View source: R/mapi.R

Description

make a partition index for a SpatialStreamNetwork object so that it can be used with fast methods for big data

Usage

1
mapi(ssn.object, nIndx, partMeth = "comp", set.seed.no = 1001)

Arguments

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.

Value

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.

Author(s)

Jay Ver Hoef


jayverhoef/SSNbd documentation built on April 1, 2020, 8:06 a.m.