declustering: Declustering function.

Description Usage Arguments Value Examples

View source: R/declustering.R

Description

This function performs cell or polygon declustering.

Usage

1
declustering(x, y, resolution, type)

Arguments

x

SpatialPointsDataFrame object

y

SpatialPolygon* object

resolution

numeric vector of length 1 or 2 to set the resolution

type

type of the delcustering. This must be one of the strings "cell", "hybrid", "polygon"

Value

SpatialPointsDataFrame

Examples

1
2
3
4
5
6
   points <- readOGR(dsn = "data", layer = "point", verbose = FALSE)
   polygon <- readOGR(dsn = "data", layer = "wolin_polygon", verbose = FALSE)
   resolution <- c(1000, 1000)
   cc <- declustering(x=x, type="polygon")
   cc2 <- declustering(x=x, y=polygon, resolution = c(1000, 1000), type="cell")
   cc3 <- declustering(x=x, y=polygon, resolution = c(100, 100), type="hybrid")

Nowosad/geoplus documentation built on May 9, 2017, 2:17 p.m.