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

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

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

                                        Printing and summarizing sparse matrices
                                         打印和总结稀疏矩阵

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

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

Printing (non-zero elements) of sparse matrices and summarizing the sparsity structure thereof.
印刷(非零元素)的稀疏矩阵和总结其稀疏结构。


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


  print(x, ...)
  summary(object, ...)



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

参数:x
matrix of class spam or spam.chol.method.
矩阵类spam或spam.chol.方法。


参数:object
matrix of class spam or spam.chol.method.
矩阵类spam或spam.chol.方法。


参数:...
any other arguments passed to print.default.
任何其他参数传递给print.default。


Details

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

spam.getOption('printsize') determines  if the sparse matrix is coerced into a matrix and the printed as an array or if only the non-zero elements of the matrix are given.
spam.getOption('printsize')确定如果被强制转换成一个矩阵的稀疏矩阵,印刷作为数组或如果仅给出的矩阵的非零元素。


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

NULL for print, because the information is printed with cat there is no real need to pass any object back. <br>  A list containing the non-zero elements and the density for summary for class spam.<br>  A list containing the non-zero elements of the factor, the density and
NULLprint,的信息印有cat的因为有没有真正需要传递任何对象。 <BR>一个列表,其中包含的非零元素和summary类spam。参考列表包含非零元素的因素,密度和密度


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


Reinhard Furrer



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

spam.options
spam.options


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


set.seed(13)
nz <- 8
ln <- nz
smat <- spam(0,ln,ln)
smat[cbind(sample(ln,nz),sample(ln,nz))] <- 1:nz

par(mfcol=c(1,2),pty='s')
spam.options( printsize=1000)
print(smat)
spam.options( printsize=10)
print(smat)
summary(smat)
(summary(smat))

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


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

使用道具 举报

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

本版积分规则

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

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

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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