Learn R Programming

spacetime (version 0.5-7)

ST-class: Class "ST"

Description

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

Usage

ST(sp, time)

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

Objects from the Class

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

Examples

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

Run the code above in your browser using DataLab