namedSparse-class(ontoTools)
namedSparse-class()所属R语言包:ontoTools
Class "namedSparse" adds margin names to sparse matrices
类的“namedSparse补充说:”保证金名稀疏矩阵
译者:生物统计家园网 机器人LoveR
描述----------Description----------
manages margin names for sparse matrices
稀疏矩阵管理的保证金名
类的对象----------Objects from the Class----------
Objects can be created by calls of the form new("namedSparse", ...). These are S4 objects that include a SparseM::matrix.csr, associated dimnames in the customary form, and two lists of name-to-index mapping environments (for row and column name resolution, with forward (name to index) and backward (index to name) mapping).
创建对象可以通过检测的形式new("namedSparse", ...)。这些S4对象,其中包括1 SparseM :: matrix.csr,dimnames习惯的形式,名称指数映射环境(行和列名称的决议(索引名),与向前和向后两个名单(索引名)的映射)。
插槽----------Slots----------
Dimnames: Object of class "list" ordinary
Dimnames:类"list"普通的对象
mat: Object of class "matrix.csr" sparse matrix
mat类"matrix.csr"稀疏矩阵对象
方法----------Methods----------
Arith signature(e1 = "namedSparse", e2 = "namedSparse"): ...
arithsignature(e1 = "namedSparse", e2 = "namedSparse")...
show signature(object = "namedSparse"): ...
显示signature(object = "namedSparse"):...
注意----------Note----------
A constructor makeNamedSparse is illustrated in the
在一个的构造makeNamedSparse说明
作者(S)----------Author(s)----------
VJ Carey <stvjc@channing.harvard.edu>
举例----------Examples----------
data(A.csr)
namedA <- mkNS(A.csr) # installs default dimnames R{1:nrow}, C{1:ncol}[安装NCOL默认dimnamesŕ{:NROW},C {1}]
print(namedA)
print(colSums(namedA))
dimnames(namedA) <- list(paste("A",1:10,sep=""),paste("B",1:5,sep=""))
print(namedA)
print(namedA %*% t(namedA))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|