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

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

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

                                        Hyper Data Frame
                                         超数据框

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

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

Create a hyperframe: a two-dimensional array in which each column consists of values of the same atomic type (like the columns of a data frame) or objects of the same class.
创建一个特超帧:一个二维阵列,其中每一列包括相同的原子类型(如一个数据框的列)或相同的类的对象的值。


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


   hyperframe(...,
             row.names=NULL, check.rows=FALSE, check.names=TRUE,
             stringsAsFactors=default.stringsAsFactors())



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

参数:...
Arguments of the form value or tag=value. Each value is either an atomic vector, or a list of objects of the same class, or a single atomic value, or a single object. Each value will become a column of the array. The tag determines the name of the column. See Details.  
参数的形式value或tag=value。每一个value原子向量,或同一个类的对象的列表,或由单个原子值,或一个单独的对象。每个value将成为一列的阵列。 tag确定的列名。查看详细信息。


参数:row.names,check.rows,check.names,stringsAsFactors
Arguments passed to data.frame controlling the names of the rows, whether to check that rows are consistent, whether to check validity of the column names, and whether to convert character columns to factors.  
参数传递给data.frame行控制的名称,是否行是一致的,是否要检查的列名的有效性,以及是否要转换的字符列因素。


Details

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

A hyperframe is like a data frame, except that its entries can be objects of any kind.
超帧是这样一个数据框,除了它的项目可以是任何类型的对象。

A hyperframe is a two-dimensional array in which each column consists of values of one atomic type (as in a data frame) or consists of objects of one class.
在阿超帧是一个两维阵列,其中每一列包括一个原子类型(如在一个数据框)的值,或由一个类的对象。

The arguments ... are any number of arguments of the form value or tag=value. Each value will become a column of the array. The tag determines the name of the column.
的参数...是任意数量的参数的形式value或tag=value。每个value将成为一列的阵列。 tag确定的列名。

Each value can be either
每一个value可以是

an atomic vector or factor (i.e. numeric vector, integer vector, character vector, logical vector, complex vector or factor)
原子向量或因子(即数值向量,向量整数,字符向量,逻辑向量,复数向量或因素)

a list of objects which are all of the same class
都是相同的类的列表的对象

one atomic value, which will be replicated to make an atomic vector or factor
一个原子值,该值将被复制到一个的原子向量或因素使

one object, which will be replicated to make a list of objects.
一个对象,将被复制到的对象列表。

All columns (vectors, factors and lists) must be of the same length, if their length is greater than 1.
所有的列(向量,因素和列表)必须具有相同的长度,如果它们的长度是大于1。


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

An object of class "hyperframe".
对象的类"hyperframe"。


为特超帧的方法----------Methods for Hyperframes----------

There are methods for print, plot, summary, with, [, [<,$, $<-, names, as.data.frame as.list, cbind and rbind for the class of hyperframes. There is also is.hyperframe and as.hyperframe.
有print,plot,summary,with,[,[<,$,$<-的方法,names,as.data.frameas.list,cbind和rbind之类的特超帧。也有is.hyperframe和as.hyperframe。


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

as.hyperframe, as.hyperframe.ppx, plot.hyperframe, with.hyperframe, as.data.frame.hyperframe, cbind.hyperframe, rbind.hyperframe
as.hyperframe,as.hyperframe.ppx,plot.hyperframe,with.hyperframe,as.data.frame.hyperframe,cbind.hyperframe,rbind.hyperframe


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


# equivalent to a data frame[相当于一个数据框]
  hyperframe(X=1:10, Y=3)

# list of functions[的函数列表]
  hyperframe(f=list(sin, cos, tan))

# table of functions and matching expressions[表函数和表达式匹配]
  hyperframe(f=list(sin, cos, tan),
             e=list(expression(sin(x)), expression(cos(x)), expression(tan(x))))

  hyperframe(X=1:10, Y=letters[1:10], Z=factor(letters[1:10]),
    stringsAsFactors=FALSE)

  lambda <- runif(4, min=50, max=100)
  X <- lapply(as.list(lambda), function(x) { rpoispp(x) })
  h <- hyperframe(lambda=lambda, X=X)
  h

  h$lambda2 <- lambda^2
  h[, "lambda3"] <- lambda^3
  h[, "Y"] <- X

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


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

使用道具 举报

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

本版积分规则

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

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

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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