SegSpatial: Create an Object of Class SegSpatial

View source: R/SegSpatial-class.R

SegSpatialR Documentation

Create an Object of Class SegSpatial

Description

Creates a new object of SegSpatial-class.

Usage

SegSpatial(d, r, h, p, coords, data, env, proj4string = CRS(as.character(NA)))

Arguments

d

an object of class numeric containing the spatial dissimilarity index value.

r

an object of class numeric containing the spatial diversity index value.

h

an object of class numeric containing the spatial information theory index value.

p

an object of class matrix that has the spatial exposure/isolation of all population groups.

coords, data, env, proj4string

see SegLocal-class.

Value

An object of SegSpatial-class.

Author(s)

Seong-Yun Hong

See Also

SegSpatial-class, spseg

Examples

# creates a random data set with 50 data points and 3 population groups
xy <- matrix(runif(100), ncol = 2)
colnames(xy) <- c("x", "y")
pop <- matrix(runif(150), ncol = 3)
colnames(pop) <- LETTERS[1:3]

# constructs an object of class 'SegSpatial'
v <- SegSpatial(d = numeric(), r = numeric(), h = numeric(), 
                p = matrix(0, 0, 0), coords = xy, data = pop, env = pop)
is(v)

syunhong/seg documentation built on Feb. 3, 2025, 7:23 a.m.