coords(spatstat)
coords()所属R语言包:spatstat
Extract or Change Coordinates of a Spatial or Spatiotemporal Point Pattern
提取或更改坐标的空间或时空点模式
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Given any kind of spatial or space-time point pattern, this function extracts the (space and/or time and/or local) coordinates of the points and returns them as a data frame.
鉴于空间或空间 - 时间的点图案的任何种,此函数提取的(空间和/或时间和/或本地)的坐标点,并返回它们作为数据框。
用法----------Usage----------
coords(x, ...)
## S3 method for class 'ppp'
coords(x, ...)
## S3 method for class 'ppx'
coords(x, ..., spatial = TRUE, temporal = TRUE, local=TRUE)
coords(x, ...) <- value
## S3 replacement method for class 'ppp'
coords(x, ...) <- value
## S3 replacement method for class 'ppx'
coords(x, ..., spatial = TRUE, temporal = TRUE, local=TRUE) <- value
参数----------Arguments----------
参数:x
A point pattern: either a two-dimensional point pattern (object of class "ppp"), a three-dimensional point pattern (object of class "pp3"), or a general multidimensional space-time point pattern (object of class "ppx").
点模式:无论是一个二维点模式(类的对象"ppp"),一个三维点模式,(对象类"pp3"),或一般的多维空间,时间点模式(对象类"ppx"“)。
参数:...
Further arguments passed to methods.
更多参数传递给方法。
参数:spatial,temporal,local
Logical values indicating whether to extract spatial, temporal and local coordinates, respectively. The default is to return all such coordinates. (Only relevant to ppx objects).
逻辑值,指示是否提取的空间,时间和局部坐标系,分别。默认情况下返回所有这样的坐标。 (只有相关ppx对象)。
参数:value
New values of the coordinates. A numeric vector with one entry for each point in x, or a numeric matrix or data frame with one row for each point in x.
新的坐标值。一个数字矢量一个条目中的每个点x,或一排数字矩阵或数据框中的每个点x。
Details
详细信息----------Details----------
The function coords extracts the coordinates from a point pattern. The function coords<- replaces the coordinates of the point pattern with new values.
的功能coords提取的坐标点模式。的功能coords<-替换用新值的点图案的坐标。
Both functions coords and coords<- are generic, with methods for the classes "ppp") and "ppx". An object of class "pp3" also inherits from "ppx" and is handled by the method for "ppx".
这两个函数coords和coords<-是通用的,使用的类的方法"ppp")"ppx"。一个对象的类"pp3"的也继承自"ppx"和处理的方法"ppx"。
值----------Value----------
coords returns a data.frame with one row for each point, containing the coordinates. coords<- returns the altered point pattern.
coords返回一个data.frame一排的每个点的坐标。 coords<-返回点模式改变。
(作者)----------Author(s)----------
Adrian Baddeley
<a href="mailto:Adrian.Baddeley@csiro.au">Adrian.Baddeley@csiro.au</a>
<a href="http://www.maths.uwa.edu.au/~adrian/">http://www.maths.uwa.edu.au/~adrian/</a>
and Rolf Turner
<a href="mailto:r.turner@auckland.ac.nz">r.turner@auckland.ac.nz</a>
参见----------See Also----------
ppx, pp3, ppp, as.hyperframe.ppx, as.data.frame.ppx.
ppx,pp3,ppp,as.hyperframe.ppx,as.data.frame.ppx。
实例----------Examples----------
df <- data.frame(x=runif(4),y=runif(4),t=runif(4))
X <- ppx(data=df, coord.type=c("s","s","t"))
coords(X)
coords(X, temporal=FALSE)
coords(X) <- matrix(runif(12), ncol=3)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|