as.data.frame.ppp(spatstat)
as.data.frame.ppp()所属R语言包:spatstat
Coerce Point Pattern to a Data Frame
强制转换点模式到数据框
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Extracts the coordinates of the points in a point pattern, and their marks if any, and returns them in a data frame.
提取的点图案中的点的坐标,和他们的标志,如果没有,并将它们返回一个数据框中。
用法----------Usage----------
## S3 method for class 'ppp'
as.data.frame(x, row.names = NULL, ...)
参数----------Arguments----------
参数:x
Point pattern (object of class "ppp").
点模式(类的对象"ppp")。
参数:row.names
Optional character vector of row names.
可选的字符向量的行名。
参数:...
Ignored.
忽略。
Details
详细信息----------Details----------
This is a method for the generic function as.data.frame for the class "ppp" of point patterns.
这是一种通用功能as.data.frame类"ppp"点模式。
It extracts the coordinates of the points in the point pattern, and returns them as columns named x and y in a data frame. If the points were marked, the marks are returned as a column named marks with the same type as in the point pattern dataset.
提取中的点的坐标点模式,并返回列名为x和y在一个数据框。如果被标记的点,标记被返回作为名为marks中的点图案数据集具有相同类型的列。
值----------Value----------
A data frame.
一个数据框。
(作者)----------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>
实例----------Examples----------
data(amacrine)
df <- as.data.frame(amacrine)
df[1:5,]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|