over-methods(spacetime)
over-methods()所属R语言包:spacetime
consistent spatio-temporal overlay for objects inheriting from ST
一致的时空覆盖的对象继承ST
译者:生物统计家园网 机器人LoveR
描述----------Description----------
consistent spatio-temporal overlay for STF, STS and STI objects, as well as their *DF counterpart: retrieves the indexes or attributes from one geometry at the spatio-temporal
为STF,STS和STI对象的,一致的时空覆盖,以及其对应的* DF:检索索引或一个几何属性的时空
用法----------Usage----------
## S4 method for signature 'STF,STF'
over(x, y, returnList = FALSE, fn = NULL, ...)
## S4 method for signature 'xts,xts'
over(x, y, returnList = FALSE, fn = NULL, ...)
## S4 method for signature 'ST'
aggregate(x, by, FUN = mean, ..., simplify = TRUE)
参数----------Arguments----------
参数:x
geometry (S/T locations) of the queries
几何(S / T的位置)的查询
参数:y
layer from which the geometries or attributes are queried
层的几何形状或属性查询
参数:returnList
logical; determines whether a list is returned, or an index vector
逻辑决定是否返回一个列表或索引向量
参数:fn
(optional) a function; see value
(可选)功能;值
参数:by
geometry over which attributes in x are aggregated (this can be a Spatial* geometry, or a ST* geometry), or temporal aggregation, such as "month", "10 minutes", or a function such as as.yearmon; see aggregate.zoo
几何过哪些属性x汇总(这可以是一个Spatial*的几何形状,或ST*几何),或时间聚集,如“月”,“10分钟” ,或一个功能(如as.yearmon); aggregate.zoo
参数:FUN
aggregation function
聚合函数
参数:simplify
boolean; if TRUE, and space or time dimensions can be dropped, the simpler (Spatial or xts) object will be returned
布尔值;如果TRUE,空间或时间上的尺寸可以被丢弃,更简单的(Spatial或xts)对象将被退回
参数:...
arguments passed on to function fn or FUN
参数传递给函数fn或FUN
值----------Value----------
an object of length length(x), or a data.frame with number of rows equal to length(x). If returnList is FALSE, a vector with indices of y for each geometry (point, grid cell centre, polygon or lines x time point) in x. if returnList is TRUE, a list of length length(x), with list element i the vector of indices of the geometries in y that correspond to the $i$-th geometry in x.
对象的长度length(x),或数据框的行数等于length(x)。如果returnList是FALSE,一个向量,其指数y为每个几何(点,网格单元的中心,多边形或行,每行的时间点)在x。如果returnList是TRUE,列表的长度length(x),与列表中的元素i向量的几何指数y对应于$ I $个几何在x。
Function aggregate.ST aggregates the attribute values of x over the geometry (space, time, or space-time) of by, using aggregation function FUN.
功能aggregate.ST总量的属性值x的by在几何结构(空间,时间,空间,时间),使用聚合函数FUN。
方法----------Methods----------
x = "xts", y = "xts" finds the row index of the instance or interval of time instances of x matching to y. Only if timeIsInterval(x) == TRUE, intervals are sought. In that case, time intervals start at the time instance of a record, and end at the next. The last time interval length is set to the interval length of the one-but-last (non-zero) interval. In case of a single time
X =“XTS”,Y =“XTS”认定的实例的行索引或时间间隔的情况下x的相匹配y。只有timeIsInterval(x) == TRUE,间隔要求。在这种情况下,时间间隔开始于下一个记录,和结束的时间实例。的最后一个时间间隔的长度被设置为一个,但最后一个(非零的)间隔的间隔长度的。在情况下,一个单一的时间
注意----------Note----------
See also over; methods intersecting SpatialLines with anything else, or SpatialPolygons with SpatialPolygons, need rgeos to be loaded first.
另见;方法交叉SpatialLines与别的或SpatialPolygons与SpatialPolygons的,需要先加载的rgeos。
(作者)----------Author(s)----------
Edzer Pebesma, <a href="mailto:edzer.pebesma@uni-muenster.de">edzer.pebesma@uni-muenster.de</a>
参见----------See Also----------
over; vignette('sto'), vignette('over')
;vignette('sto'),vignette('over')
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|