Description Usage Arguments Value Author(s) See Also Examples
View source: R/SegSpatial-class.R
Creates a new object of SegSpatial-class
.
1 | SegSpatial(d, r, h, p, coords, data, env, proj4string = CRS(as.character(NA)))
|
d |
an object of class |
r |
an object of class |
h |
an object of class |
p |
an object of class |
coords, data, env, proj4string |
see |
An object of SegSpatial-class
.
Seong-Yun Hong
1 2 3 4 5 6 7 8 9 10 | # 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)
|
Loading required package: sp
[1] "SegSpatial" "SegLocal"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.