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

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

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

                                        Class "STFDF"
                                         类“STFDF”

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

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

A class for spatio-temporal data with full space-time grid; for
A类为充分的空间,时间格的时空数据;


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


  STF(sp, time)
  STFDF(sp, time, data)
  ## S4 method for signature 'STFDF'
x[i, j, ..., drop = TRUE]
  ## S4 method for signature 'STFDF,xts'
coerce(from, to, strict=TRUE)
  ## S4 method for signature 'STFDF,Spatial'
coerce(from, to)



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

参数:sp
object of class Spatial, having n elements
空间的类的对象,n元素


参数:time
object holding time information, of length m; see ST for details
对象的时间信息,长度为m;看到ST的详细信息,


参数:data
data frame with n*m rows corresponding to the observations (spatial index moving fastest)
n*m行对应的观察(空间索引移动速度最快的数据框)


参数: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
忽视


值----------Value----------

the as.data.frame coercion returns the full long table, with purely spatial attributes and purely time attributes replicated
as.data.frame胁迫返回完整的长条桌,与纯粹的空间属性和纯粹的时间属性复制


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

Objects of this class represent full space/time data with a full grid
这个类的对象表示全是满格的空间/时间数据


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




sp: spatial object; see ST-class
sp:空间对象,ST-




time: temporal object; see ST-class
time:时间对象,ST-




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


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




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




coerce STFDF,xts
强迫STFDF,XTS




coerce STFDF,Spatial
强迫STFDF,空间

(from) coerces to (wide form) SpatialXxDataFrame, where SpatialXx is the spatial class of from@sp
()胁迫(宽型)SpatialXxDataFrame,SpatialXx是空间类的@ SP


(作者)----------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 = 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
stfdf[1:2,]
stfdf[,1:2]
stfdf[,,2]
stfdf[,,"values"]
stfdf[1,]
stfdf[,2]
as(stfdf, "xts")
# examples for [[, [[&lt;-, $ and $&lt;- [[[[[< - 的例子,$和$ < - ]
stfdf[[1]]
stfdf[["values"]]
stfdf[["newVal"]] <- rnorm(12)
stfdf$ID
stfdf$ID = paste("OldIDs", 1:12, sep="")
stfdf$NewID = paste("NewIDs", 12:1, sep="")
stfdf

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-9 17:22 , Processed in 0.024906 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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