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

R语言 spatstat包 marks.psp()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 13:45:23 | 显示全部楼层 |阅读模式
marks.psp(spatstat)
marks.psp()所属R语言包:spatstat

                                        Marks of a Line Segment Pattern
                                         一个线段模式的标志

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

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

Extract or change the marks attached to a line segment pattern.
提取或更改连接线段模式的标志。


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


## S3 method for class 'psp'
marks(x, ..., dfok=TRUE)           
## S3 replacement method for class 'psp'
marks(x, ...) <- value



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

参数:x
Line segment pattern dataset (object of class "psp").  
线段模式的数据集(类的对象"psp")。


参数:...
Ignored.  
忽略。


参数:dfok
Logical. If FALSE, data frames of marks are not permitted and will generate an error.  
逻辑。如果FALSE,数据框的标记,不得将产生一个错误。


参数:value
Vector or data frame of mark values, or NULL.  
Vector或数据框的标记值,或NULL。


Details

详细信息----------Details----------

These functions extract or change the marks attached to each of the line segments in the pattern x. They are methods for the generic functions marks and marks<- for the class "psp" of line segment patterns.
这些函数提取或改变附加的标记中的各线段的图案x。他们是方法的一般职能marks和marks<-类"psp"线段模式。

The expression marks(x) extracts the marks of x. The assignment marks(x) <- value assigns new marks to the dataset x, and updates the dataset x in the current environment.
marks(x)提取的痕迹x。的分配marks(x) <- value分配新的标记的数据集x,和更新数据集x在当前的环境。

The marks can be a vector, a factor, or a data frame.
该标记可以是一个矢量,一个因素,或一个数据框。

For the assignment marks(x) <- value, the value should be a vector or factor of length equal to the number of segments in x, or a data frame with as many rows as there are segments in x. If value is a single value, or a data frame with one row, then it will be replicated so that the same marks will be attached to each segment.
对于分配marks(x) <- value,value应该是一个矢量长度x,或一个数据框与尽可能多的行中的段的数量等于或因子有分部在 x。如果value是一个单一的值,或者一个数据框一排,然后它会被复制,所以,同样的标记也将被连接到各分部。

To remove marks, use marks(x) <- NULL or unmark(x).
要删除标记,使用marks(x) <- NULL或unmark(x)。


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

For marks(x), the result is a vector, factor or data frame, containing the mark values attached to the line segments of x. If there are no marks, the result is NULL.
对于marks(x),其结果是一个向量,因子或数据框,含有标记值附加到的线段x。如果没有标记,其结果是NULL。

For marks(x) <- value, the result is the updated line segment pattern x (with the side-effect that the dataset x is updated in the current environment).
对于marks(x) <- value,结果是更新的线段图案x(带的副作用,数据集x在当前环境中被更新)。


(作者)----------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----------

psp.object, marks, marks<-
psp.object,marks,marks<-


实例----------Examples----------


  example(psp)
  marks(X)
  marks(X)[,2]
  marks(X) <- 42
  marks(X) <- NULL

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-15 23:03 , Processed in 0.020586 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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