neighbourhood-class: Class 'neighbourhood'

Description Objects from the Class Slots Methods Author(s) See Also Examples

Description

A class representing a local spatial neighbourhood.

Objects from the Class

Objects can be created by calls of the form new("neighbourhood", ...), from the constructor neighbourhood or through the easier function getNeighbours.

Slots

data

Object of class data.frame holding the data for each local neighbourhood.

distances

Object of class matrix providing the separating distances per neighbourhood.

index

Object of class matrix pointing to the IDs of the underlying Spatial object.

var

Object of class character giving the variable's name.

coVar

Object of class character giving the covariate's name.

prediction

of class logical, whether this neighbourhood is suited for fitting or prediction purposes.

Methods

names

signature(x = "neighbourhood"): provides the variable names of the neighbourhood.

show

signature(object = "neighbourhood"): a brief description of the characteristics of the neighbourhood.

[

signature(x = "neighbourhood", i = "numeric", j = "missing"): subsets the selection of neighbourhoods returning a subset of these ("column wise")

calcBins

signature(data = "neighbourhood"): calculates bins from an existing neighbourhood for repeated application of spatio-temporal trees in a spatio-temporal vine copula.

Author(s)

Benedikt Graeler

See Also

getNeighbours

Examples

1
2
3
4
5
library("sp")
spdf <- data.frame(x=c(112,154,212,289),y=c(124,198,85,168),measure=rlnorm(4))
coordinates(spdf) <- ~x+y

getNeighbours(spdf,size=4)

spcopula documentation built on May 2, 2019, 4:49 p.m.