foreign(spam)
foreign()所属R语言包:spam
Transformation to other sparse formats
其他稀疏格式转换
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Transform between the spam sparse format to the
变换之间的spam稀疏格式
用法----------Usage----------
as.spam.matrix.csr(x)
# as.matrix.csr.spam(x)
as.dgRMatrix.spam(x)
as.dgCMatrix.spam(x)
as.spam.dgRMatrix(x)
as.spam.dgCMatrix(x)
参数----------Arguments----------
参数:x
sparse matrix of class spam, matrix.csr, dgRMatrix or dgCMatrix.
类稀疏矩阵spam,matrix.csr,dgRMatrix或dgCMatrix。
Details
详细信息----------Details----------
We do not provide any S4 methods and because of the existing mechanism a standard S3 does not work.<br>
我们不提供任何S4方法,因为现有的机制,一个标准的S3不工作。<BR>
The functions are based on require.<br>
这些功能的基础上require。<BR>
Notice that as.matrix.csr.spam should read as as."matrix.csr".spam.
请注意as.matrix.csr.spam应该阅读as."matrix.csr".spam的。
值----------Value----------
According to the call, a sparse matrix of class spam,
根据呼叫,稀疏矩阵类spam,
(作者)----------Author(s)----------
Reinhard Furrer
参见----------See Also----------
triplet, Matrix or matrix.csr
triplet,Matrix或matrix.csr
实例----------Examples----------
## Not run: [#不运行:]
S <- diag.spam(4)
U <- as.matrix.csr.spam( S)
R <- as.dgRMatrix.spam( S)
C <- as.dgCMatrix.spam( S)
as.spam.dgCMatrix(C)
slotNames(U)
slotNames(R)
# For column oriented sparse formats a transpose does not the job,[面向列的稀疏格式的转置不工作,]
# as the slot names change.[的插槽名称变更。]
# as.spam(R) does not work.[as.spam(R)是行不通的。]
## End(Not run)[#(不执行)]
## Not run: [#不运行:]
# a dataset contained in Matrix[矩阵中包含的数据集]
data(KNex)
as.spam.dgCMatrix(KNex$mm)
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|