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

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

[复制链接]
发表于 2012-9-30 12:22:38 | 显示全部楼层 |阅读模式
options(spam)
options()所属R语言包:spam

                                        Options Settings
                                         选项设置

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

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

Allow the user to set and examine a variety of options which affect the way in which R computes and displays sparse matrix results.
允许用户设置和检查各种选项影响的方式,其中R计算并显示稀疏矩阵的结果。


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


spam.options(...)

spam.getOption(x)




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

参数:...
any options can be defined, using name = value or by passing a list of such tagged values.  However, only the ones below are used in spam. Further, spam.options('name') == spam.options()['name'], see the example.  
可以定义任何选项,使用name = value或通过这些标记的值的列表。然而,只有下面的用于在spam。此外,spam.options('name') == spam.options()['name'],看到的例子。


参数:x
a character string holding an option name.
字符的字符串选项名称。


Details

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

Invoking spam.options() with no arguments returns a list with the current values of the options. To access the value of a single option, one should use spam.getOption("eps"), e.g., rather than spam.options("eps") which is a list of length one.<br>
调用spam.options()不带任何参数,返回一个列表的选项的当前值。要访问的一个选项的值,你应该使用spam.getOption("eps"),例如,而不是spam.options("eps")这是一个列表的长度为一。<BR>

Internally, the options are kept in the list .Spam.<br>
在内部,选项保持在列表中.Spam。<BR>

Of course, printing is still subordinate to getOption("max.print") or similar options.
当然,印刷仍是从属于getOption("max.print")或类似的选项。


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

For spam.getOption, the current value set for option x, or NULL if the option is unset.
对于spam.getOption,当前值选项“x或NULL,如果该选项是设置。

For spam.options(), a list of all set options sorted by category.  For spam.options(name), a list of length one containing the set value, or NULL if it is unset.  For uses setting one or more options, a list with the previous values of the options changed (returned invisibly).
对于spam.options(),所有的设置选项,按类别排序的列表。对于spam.options(name),长度包含设定值的列表,或NULL如果是没有设置的。用于设置一个或多个选项,列表中的选项改变之前的值(返回不可见)。


使用的选项----------Options used----------

A short description with the default values follows.
使用默认值如下的简短说明。




eps=.Machine$double.eps: values smaller than this are
eps=.Machine$double.eps:值小于




drop=FALSE: default parameter for drop when subsetting
drop=FALSE:drop当子集的默认参数




printsize=100: the max number of elements of a matrix which we
printsize=100:一个矩阵元素的最大数量,我们




imagesize=10000: the max number of elements of a matrix we display as regular matrix with image or display. Larger matrices are represented
imagesize=10000:矩阵显示为正规矩阵image或display元素的最大数量。更大的矩阵表示




cex=1200: default dot size for  image or display.
cex=1200:默认点大小为image或display。




structurebased=FALSE: should operations be carried out on
structurebased=FALSE:应业务进行上




codeinefficiencywarning=1e6: issue a warning when inefficient operations are performed and the matrix exceeds the specified size.
codeinefficiencywarning = 1E6发出警告时,工作效率低和矩阵超出指定的大小。




trivalues=FALSE: a flag whether to return the structure  (FALSE) or the values themselves (TRUE) when returning the
trivalues=FALSE:标志是否返回的结构(FALSE)或值(TRUE)返回时,




listmethod="PE": algorithm for spam.list. Default is suggestion by Paul Eilers (thanks). Any other specification uses a
listmethod="PE":算法spam.list。默认情况下是由保罗·艾勒斯(谢谢)的建议。任何其他规范中使用了




dopivoting=TRUE: default parameter for "solve" routines. FALSE
dopivoting=TRUE:“解决”程序的默认参数。 FALSE




safemode=c(TRUE,TRUE,TRUE): The logicals are determine (1)  verify double and integer formats when constructing spam objects (2) quick sanity check when constructing sparse matrices (3) testing for NAs in Fortan calls. TRUEs are safer but slightly slower. The most relevant speedup
safemode=c(TRUE,TRUE,TRUE):的逻辑是确定(1)施工时,验证双整数格式spam对象(2)快速完整性检查时,在Fortran调用构造稀疏矩阵(3)测试NAS。 TRUE的是更安全的,但稍微慢一点。最相关的加速




cholsymmetrycheck=TRUE: for the Cholesky factorization,
cholsymmetrycheck=TRUE:Cholesky分解,




cholpivotcheck=TRUE: for the Cholesky factorization,
cholpivotcheck=TRUE:Cholesky分解,




cholupdatesingular="warning": for a Cholesky update, what happens if the matrix is singular: "warning" only and
cholupdatesingular="warning"的Cholesky更新,会发生什么情况,如果矩阵是奇异的:"warning"只有




cholincreasefactor=c(1.25,1.25): If not enought memory
cholincreasefactor=c(1.25,1.25):如果没有足够多的内存




nnznearestdistnnz=c(400^2,400): Memory allocation
nnznearestdistnnz=c(400^2,400):内存分配




nearestdistincreasefactor=1.25: If not enought memory
nearestdistincreasefactor=1.25:如果没有足够多的内存


(作者)----------Author(s)----------


<code>spam.options</code> is essentially identical to <code>sm.options</code>.



参见----------See Also----------

print, display,  image, upper.tri, chol, nearest.dist, etc.<br> powerboost<br>
print,display,image,upper.tri,chol,nearest.dist,等等。参考powerboost<BR>


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


op <- spam.options()

# two ways of representing the options nicely.[两种方式很好地代表的选项。]
utils::str(op)
noquote(format(op) )


smat <- diag.spam( 1:8)
smat
spam.options( printsize=49)
smat


# Reset to default values:[重置为默认值:]
spam.options( eps=.Machine$double.eps, drop=FALSE,            
   printsize=100, imagesize=10000, cex=1200,
   structurebased=FALSE, inefficiencywarning=1e6,
   trivalues=FALSE, listmethod="PE",
   safemode=c(TRUE,TRUE,TRUE), dopivoting=TRUE,
   cholsymmetrycheck=TRUE, cholpivotcheck=TRUE,
   cholupdatesingular="warning", cholincreasefactor=c(1.25,1.25),
   nearestdistincreasefactor=1.25, nearestdistnnz=c(400^2,400)     )


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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-9 18:56 , Processed in 0.040938 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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