ST-class(spacetime)
ST-class()所属R语言包:spacetime
Class "ST"
类“ST”
译者:生物统计家园网 机器人LoveR
描述----------Description----------
An abstract class from which useful spatio-temporal classes are
有用的时空类是一个抽象类
用法----------Usage----------
ST(sp, time)
参数----------Arguments----------
参数:sp
an object deriving from class Spatial, such as a SpatialPoints or SpatialPolygons
空间类,如SpatialPoints或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
一个对象的类的XTS,或时间向量(目前:日期,POSIXct,TIMEDATE,yearmon和yearqtr;支持;看到XTS),在后一种情况下,它应该是按时间顺序
类对象----------Objects from the Class----------
Objects of this class are not meant to be useful; only derived
这个类的对象是注定不会是有用的,只有派生
插槽----------Slots----------
sp: Object deriving from class "Spatial"
sp:对象派生类"Spatial"的
time: Object of class "xts"
time:对象类"xts"的
方法----------Methods----------
[[ signature(obj = "ST"): retrieves the attribute element
[signature(obj = "ST"):检索属性元素
$ signature(obj = "ST"): retrieves the attribute element
$signature(obj = "ST"):检索属性的元素
[[<- signature(obj = "ST"): sets or replaces the attribute element
[< - signature(obj = "ST"):设置或替换属性元素
$<- signature(obj = "ST"): sets or replaces the attribute element
$ < - signature(obj = "ST"):设置或替换属性元素
注意----------Note----------
argument (and object slot) sp can be pure geometry, or geometry with attributes. In the latter case, the geometries are kept with the sp slot, and only replicated (when needed) on coercion to the long format, with as.data.frame.
参数(和对象插槽)SP可以是纯几何,几何与属性。在后者的情况下,保持的几何构型与的sp插槽,并只复制胁迫长格式(在需要时),与as.data.frame。
slot time needs to be of class xts; if a time or date vector is passed as argument to SP, it will be converted into an xts object.
插槽的时候需要的类XTS,如果时间或日期向量作为参数传递到SP,它会被转换成一个XTS对象。
ST is meant as a super-class, and is not to be used for representing data, just like Spatial in the sp package.
ST是超一流的,是不被使用的数据表示,就像空间的SP包。
(作者)----------Author(s)----------
Edzer Pebesma, <a href="mailto:edzer.pebesma@uni-muenster.de">edzer.pebesma@uni-muenster.de</a>
实例----------Examples----------
time = as.Date('2008-01-01')+1:2
timeIsInterval(time) = TRUE
sp = SpatialPoints(cbind(c(0,1),c(0,1)))
ST(sp, time)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|