spacetime (version 1.1-5)

ST-class: Class "ST"

Description

An abstract class from which useful spatio-temporal classes are derived

Usage

ST(sp, time, endTime)

Arguments

sp
an object deriving from class Spatial, such as a SpatialPoints or SpatialPolygons
time
an object of class xts, or a time vector (currently: Date, POSIXct, timeDate, yearmon and yearqtr; are supported; see xts); in the latter case, it should be in time order
endTime
vector of class POSIXct holding end points of time intervals

Objects from the Class

Objects of this class are not meant to be useful; only derived classes can be meaningful

References

http://www.jstatsoft.org/v51/i07/

Examples

Run this code
time = as.Date('2008-01-01')+1:2
library(sp)
sp = SpatialPoints(cbind(c(0,1),c(0,1)))
ST(sp, time, delta(time))

Run the code above in your browser using DataLab