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

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

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

                                        Marks of a Point Pattern
                                         标志点模式

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

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

Extract or change the marks attached to a point pattern dataset.
提取或更改阵列点数据集的标志。


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


marks(x, ...)
## S3 method for class 'ppp'
marks(x, ..., dfok=TRUE)           
## S3 method for class 'ppx'
marks(x, ..., drop=TRUE)
marks(x, ...) <- value
## S3 replacement method for class 'ppp'
marks(x, ..., dfok=TRUE) <- value
## S3 replacement method for class 'ppx'
marks(x, ...) <- value
setmarks(x, value)
x %mark% value



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

参数:x
Point pattern dataset (object of class "ppp" or "ppx").  
点图案集(类的对象"ppp"或"ppx")。


参数:...
Ignored.  
忽略。


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


参数:drop
Logical. If TRUE, a data frame consisting of a single column of marks will be converted to a vector or factor.  
逻辑。如果TRUE,一个数据框,由一个单一的列标记将被转换为一个向量或因子。


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


Details

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

These functions extract or change the marks attached to the points of the point pattern x.
这些功能提取或改变连接点的点模式x的痕迹。

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. The expression setmarks(x,value) or equivalently x %mark% value returns a point pattern obtained by replacing the marks of x by value, but does not change the dataset x itself.
marks(x)提取的痕迹x。的分配marks(x) <- value分配新的标记的数据集x,和更新数据集x在当前的环境。的表达setmarks(x,value)或等效x %mark% value返回一个指向模式,通过更换商标的xvalue,但不改变的数据集x本身。

For point patterns in two-dimensional space (objects of class "ppp") the marks can be a vector, a factor, or a data frame.
对于两维空间(类的对象的点图案在"ppp")的标记可以是一个向量,一个因素,或一个数据框。

For general point patterns (objects of class "ppx") the marks can be a vector, a factor, a data frame or a hyperframe.
对于一般的点模式(对象类“PPX”)的标记可以是一个向量,是一个因素,一个数据框或超帧。

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

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

Use ppp or ppx to create point patterns in more general situations.
使用ppp或ppx创建点模式,在更一般的情况下。


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

For marks(x), the result is a vector, factor, data frame or hyperframe, containing the mark values attached to the points of x.
对于marks(x),其结果是一个向量,因子,数据框或超帧,含有标记值附加到x点。

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

For setmarks(x,value) and x %mark% value, the return value is the point pattern obtained by replacing the marks of x by value.
对于setmarks(x,value)和x %mark% value,返回值是由更换的痕迹xvalue的点模式。


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

ppp.object, ppx, unmark, hyperframe
ppp.object,ppx,unmark,hyperframe


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


   data(amacrine)
   # extract marks[提取痕迹]
   m <- marks(amacrine)
   # recode the mark values "off", "on" as 0, 1[重新编码的标记值“关”,“”,0,1]
   marks(amacrine) <- as.integer(m == "on")

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-15 14:24 , Processed in 0.022900 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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