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

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

[复制链接]
发表于 2012-9-30 14:20:57 | 显示全部楼层 |阅读模式
with.hyperframe(spatstat)
with.hyperframe()所属R语言包:spatstat

                                        Evaluate an Expression in Each Row of a Hyperframe
                                         计算表达式的一个超帧中的每一行

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

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

An expression, involving the names of columns in a hyperframe, is evaluated separately for each row of the hyperframe.
一个表达式,涉及在一个特超帧的列的名称,分别评估的特超帧的每一行。


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


## S3 method for class 'hyperframe'
with(data, expr, ...,
                         simplify = TRUE,
                         ee = NULL, enclos=NULL)



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

参数:data
A hyperframe (object of class "hyperframe") containing data.  
超帧(对象的类"hyperframe")包含数据。


参数:expr
An R language expression to be evaluated.
一个R语言的表达进行评估。


参数:...
Ignored.
忽略。


参数:simplify
Logical. If TRUE, the return value will be simplified to a vector whenever possible.  
逻辑。 TRUE如果,则返回值将被简化为一个向量尽可能。


参数:ee
Alternative form of expr, as an object of class "expression".  
另一种形式的expr,作为对象的类"expression"。


参数:enclos
An environment in which to search for objects that are not found in the hyperframe. Defaults to parent.frame().  
要在其中搜索的对象都没有发现在超帧的环境。默认为parent.frame()的。


Details

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

This function evaluates the expression expr in each row of the hyperframe data. It is a method for the generic function with.
这个函数,计算表达式expr在每一行的超帧data。这是一个方法的通用函数with。

The argument expr should be an R language expression in which each variable name is either the name of a column in the hyperframe data, or the name of an object in the parent frame (the environment in which with was called.) The argument ee can be used as an alternative to expr and should be an expression object (of class "expression").
参数expr应该是一个R语言表达中的每个变量名的名称中的列的超帧data,或在父框架中的对象的名称(环境 with被调用。)参数ee可以作为一个替代expr应该是一个表达的对象(类"expression"“)。

For each row of data, the expression will be evaluated so that variables which are column names of data are interpreted as the entries for those columns in the current row.
对于每一行data,表达式将被评估的变量是列名的data被解释为当前行中的这些列的条目。

For example, if a hyperframe h has columns called A and B, then with(h, A != B) inspects each row of data in turn, tests whether the entries in columns A and B are equal, and returns the n logical values.
例如,如果一个特超帧h有名为A和B,然后with(h, A != B)data反过来,测试检查每一行中的条目是否列的列A和B是平等的,返回n逻辑值。


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

Normally a list of length n (where n is the number of rows) containing the results of evaluating the expression for each row.  If simplify=TRUE and each result is a single atomic value, then the result is a vector or factor  containing the same values.
通常情况下,列表的长度n(其中n的行数),其中包含的每一行计算表达式的结果。如果simplify=TRUE和每一个结果是一个单一的原子值,那么结果是一个向量或因子包含相同的值。


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

hyperframe, plot.hyperframe
hyperframe,plot.hyperframe


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


  # generate Poisson point patterns with intensities 10 to 100[产生泊松点模式与强度的10到100]
   H <- hyperframe(L=seq(10,100, by=10))
   X <- with(H, rpoispp(L))

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-17 03:06 , Processed in 0.023720 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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