找回密码
 注册
查看: 359|回复: 0

R语言 spacetime包 STSDF-class()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 12:13:38 | 显示全部楼层 |阅读模式
STSDF-class(spacetime)
STSDF-class()所属R语言包:spacetime

                                        Class "STSDF"
                                         类“STSDF”

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

A class for spatio-temporal data with partial space-time grids; for n spatial locations and m times, an index
索引为n的空间位置和m次,A类为时空数据,部分的时空电网的;


用法----------Usage----------


  STS(sp, time, index)
  STSDF(sp, time, data, index)
  ## S4 method for signature 'STSDF'
x[i, j, ..., drop = TRUE]
  ## S4 method for signature 'STSDF,STFDF'
coerce(from, to, strict=TRUE)
  ## S4 method for signature 'STSDF,STIDF'
coerce(from, to, strict=TRUE)



参数----------Arguments----------

参数:sp
object of class Spatial
对象的类空间


参数:time
object holding time information; see ST-class
对象持有时间的信息,请参阅ST-


参数:data
data frame with rows corresponding to the observations (spatial index moving faster than temporal)  
数据框的行对应于观测(空间索引移动速度比颞)


参数:index
two-column matrix: rows corresponding to the nodes for which observations are available, first column giving spatial index, second column giving temporal index  
行两列的矩阵:观测可用的节点相对应的,给予空间索引的第一列,第二列给出时间索引


参数:x
an object of class STFDF
一个类STFDF的对象


参数:i
selection of spatial entities
空间实体的选择


参数:j
selection of temporal entities (see syntax in package xts)  
选择的时间实体(见包XTS的语法)


参数:...
selection of attribute(s)
选择的属性()


参数:drop
if TRUE and a single spatial entity is selected, an object of class xts is returned; if TRUE and a single temporal entity is selected, and object of the appropriate Spatial class is returned; if FALSE, no coercion to reduced classes takes place
如果为true,选择一个单一的空间实体,则返回一个对象的类XTS,如果为true,选择一个单一的时空实体,并适当Spatial类,则返回的对象,如果为FALSE,没有强迫减少类发生


参数:from
object of class STFDF
对象的类STFDF的


参数:to
target class
目标类


参数:strict
ignored
忽视


类对象----------Objects from the Class----------

Objects of this class carry sparse space/time grid data
这个类的对象进行稀疏的空间/时间的网格数据


插槽----------Slots----------




sp: Object of class "Spatial"
sp:对象类"Spatial"的




time: Object holding time information; see ST-class
time:对象保温时间信息,请参阅ST-类




index: matrix of dimension n x 2, where n matches the number of rows
index:矩阵的维度为nx 2,其中,n的行数相匹配




data: Object of class data.frame, which holds
data:对象类data.frame,持有


方法----------Methods----------




[ signature(x = "STSDF"): selects spatial entities,        temporal entities, and attributes
[signature(x = "STSDF"):选择空间实体,时间实体和属性


(作者)----------Author(s)----------


Edzer Pebesma, <a href="mailto:edzer.pebesma@uni-muenster.de">edzer.pebesma@uni-muenster.de</a>



实例----------Examples----------


sp = cbind(x = c(0,0,1), y = c(0,1,1))
row.names(sp) = paste("point", 1:nrow(sp), sep="")
sp = SpatialPoints(sp)
time = xts(1:4, as.POSIXct("2010-08-05")+3600*(10:13))
m = c(10,20,30) # means for each of the 3 point locations[的3点的位置中的每一个的装置,用于]
mydata = rnorm(length(sp)*length(time),mean=rep(m, 4))
IDs = paste("ID",1:length(mydata))
mydata = data.frame(values = signif(mydata,3), ID=IDs)
stfdf = STFDF(sp, time, mydata)
stfdf
stpdf = as(stfdf, "STSDF")
stpdf[1:2,]
stpdf[,1:2]
stpdf[,,2]
stpdf[,,"values"]
stpdf[1,]
stpdf[,2]
# examples for [[, [[&lt;-, $ and $&lt;- [[[[[< - 的例子,$和$ < - ]
stpdf[[1]]
stpdf[["values"]]
stpdf[["newVal"]] <- rnorm(12)
stpdf$ID
stpdf$ID = paste("OldIDs", 1:12, sep="")
stpdf$NewID = paste("NewIDs", 12:1, sep="")
stpdf

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-6-9 23:19 , Processed in 0.029679 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表