as.data.frame.psp(spatstat)
as.data.frame.psp()所属R语言包:spatstat
Coerce Line Segment Pattern to a Data Frame
胁迫线段模式到数据框
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Extracts the coordinates of the endpoints in a line segment pattern, and their marks if any, and returns them in a data frame.
提取线段的图案中的端点的坐标,和他们的标志,如果没有,并将它们返回一个数据框中。
用法----------Usage----------
## S3 method for class 'psp'
as.data.frame(x, row.names = NULL, ...)
参数----------Arguments----------
参数:x
Line segment pattern (object of class "psp").
线段模式(类的对象"psp")。
参数: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 "psp" of line segment patterns.
这是一种方法的通用函数as.data.frame类"psp"线段图案。
It extracts the coordinates of the endpoints of the line segments, and returns them as columns named x0, y0, x1 and y1 in a data frame. If the line segments were marked, the marks are appended as an extra column or columns to the data frame which is returned. If the marks are a vector then a single column named marks is appended. in the data frame, with the same type as in the line segment pattern dataset. If the marks are a data frame, then the columns of this data frame are appended (retaining their names).
它提取的线段的端点坐标,和他们列名为x0,y0,x1和y1在一个数据框的返回。如果线段标记,标记附加一个额外的列或列的数据框,则返回。如果标记是一个向量,那么单个列名为marks的追加。数据框中的,具有相同的类型,如在该线段图案数据集。如果标记是一个数据框,然后,该数据框的列被附加(保持他们的名字)。
值----------Value----------
A data frame with 4 or 5 columns.
4或5列的数据框。
(作者)----------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(copper)
df <- as.data.frame(copper$Lines)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|