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

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

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

                                        Read External Matrix Formats
                                         外部矩阵格式

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

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

Read matrices stored in the Harwell-Boeing or MatrixMarket formats.
矩阵中存储的的哈威尔的波音或MatrixMarket格式的。


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


read.HB(file)
read.MM(file)



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

参数:file
the name of the file to read, as a character scalar.    Alternatively, read.HB and read.MM accept connection objects.
读取的文件的名称,作为一个字符的标量。另外,read.HB和read.MM接受连接对象。


Details

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

The names of files storing matrices in the Harwell-Boeing format usually end in ".rua" or ".rsa". Those storing matrices in the MatrixMarket format usually end in ".mtx".
存储矩阵在哈威尔波音格式的文件的名称通常以".rua"或".rsa"。这些存储的矩阵中的MatrixMarket的格式通常最终在".mtx"。

Currently, only  real assembled Harwell-Boeing can be read with read.HB. Reading MatrixMarket formats is more flexible. However, as entries of spam matrices are of mode double, integers matrices are coerced to doubles, patterns lead to matrices containing ones and complex are coerced to the real part thereof. In these aforementioned cases, a warning is issued.<br>
目前,只有真正的组装,哈威尔,波音公司可以读取read.HB。阅读MatrixMarket格式更加灵活。然而,由于项目的spam矩阵模式double,强制转换为双整数矩阵,图案的和复杂的部分被强制为矩阵。在上述这些情况下,会发出警告。<BR>

MatrixMarket also defines an array format, in which case a (possibly) dense spam object is return (retaining only elements which are
MatrixMarket还定义了一个数组的格式,在这种情况下,(可能)致密spam对象返回(仅保留元素


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

A sparse matrix of class  spam.
稀疏矩阵类spam。


注意----------Note----------

The functions are based on readHB and readMM from the library Matrix to build the connection and read the raw data. At present, read.MM is more flexible than  readMM.
功能的基础上,readHB和readMM从图书馆Matrix建立连接,并读取原始数据。目前,read.MM是更灵活,比readMM。


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


Reinhard Furrer based on <code>Matrix</code> functions by
Douglas Bates <a href="mailto:bates@stat.wisc.edu">bates@stat.wisc.edu</a> and Martin Maechler <a href="mailto:maechler@stat.math.ethz.ch">maechler@stat.math.ethz.ch</a>



参考文献----------References----------




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



## Not run: [#不运行:]
image(read.MM(gzcon(url(
  "ftp://math.nist.gov/pub/MatrixMarket2/Harwell-Boeing/bcspwr/bcspwr01.mtx.gz"))))

## End(Not run)[#(不执行)]

## Not run: [#不运行:]
## Datasets supplied within Matrix[#数据集内提供的矩阵]
str(read.MM(system.file("external/pores_1.mtx",package = "Matrix")))
str(read.HB(system.file("external/utm300.rua", package = "Matrix")))
str(read.MM(system.file("external/lund_a.mtx", package = "Matrix")))
str(read.HB(system.file("external/lund_a.rsa", package = "Matrix")))

## End(Not run)[#(不执行)]

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-10 04:16 , Processed in 0.021509 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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