SLattice-class: The SLattice class and constructor function

Description Usage Arguments Details Value Slots Note Author(s) See Also Examples

Description

SLattice: a Class for Spatial Aggregations (Area data)

Usage

1
SLattice(observations)

Arguments

observations

object of one of the sublasses of Spatial, anything but SpatialPoints

Details

A class to store spatial aggregations, such as population densities or grid maps; spatial aggregations are (single) values that have reference to an area, e.g. the maximum, average, or sum over an area.

Aggregation values are values that refer to an area (polygon, grid cell), or line, as a whole: the values cannot be interpreted as the value at any given point in an area or on a line; these individual values may be recovered by estimation (area-to-point interpolation), but in principle got lost by aggregation. Aggregation may be integral to observation (e.g., remote sensing pixels refer to values aggregated over an area similar to the pixel), or a result from spatially aggregating data, e.g. from using aggregate.

Value

object of class SLattice-class

Slots

observations

object of a subclass of Spatial; needs to be anything but SpatialPoints

Note

The domain for spatial aggregations is identical to the geometry covered by its geometry. The support of the aggregation is identical to its features (grid cells/pixels, polygons).

Author(s)

Edzer Pebesma

See Also

SObjects, SField

Examples

1
2
3
4
5
6
7
8
9
library(maptools)
fname = system.file("shapes/sids.shp", package="maptools")[1]
nc = readShapePoly(fname, proj4string=CRS("+proj=longlat +datum=NAD27"))
sa = SLattice(nc)
# has aggregated quantities, except for CNTY_, CNTY_ID, FIPS, FIPSNO, NAME
library(sp)
demo(meuse, ask = FALSE, echo = FALSE)
try(x <- SLattice(meuse))
plot(SLattice(meuse.area))

edzer/mss documentation built on May 15, 2019, 11:08 p.m.