neighborGrowing: Growing of neighbors

View source: R/neighborGrowing.R

neighborGrowingR Documentation

Growing of neighbors

Description

This function grows neighbor SpatialPolygonsDataFrame objects together

Usage

neighborGrowing(spdf, nb, ID.start = NULL, ID.class = NULL,
  return.input = TRUE, return.gUnaryUnionNeighbors = TRUE,
  quiet = TRUE)

Arguments

spdf

SpatialPolygonsDataFrame, or full path of a shapefile

nb

object neighborhood based on poly2nb

ID.start

vector containing ID's where the growing starts. Default: NULL

ID.class

ID's of a specific class in order to allow growing only for class members. Default: NULL

return.input

spdf is returned with neighbor information. Default: TRUE

return.gUnaryUnionNeighbors

return united neighbors based on gUnaryUnion. Default: TRUE

quiet

no outputs in console. Default: TRUE

Value

list containing input SpatialPolygonsDataFrame with information on growing neighbors, geometry with united neighbors, or both (default)

Note

  • SpatialPolygonsDataFrame input must have an ID field with unique numbers


ggRaver/Lslide documentation built on April 8, 2022, 7:14 a.m.