dim(CALIB)
dim()所属R语言包:CALIB
Retrieve the Dimensions of an RGList\_CALIB or SpikeList object
检索一个RGList \ _CALIB或SpikeList对象尺寸
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Retrieve the number of rows (genes) and columns (arrays) for an RGList\_CALIB or SpikeList
为RGList \ _CALIB或SpikeList检索的行数(基因)和列(数组)
用法----------Usage----------
## S3 method for class 'RGList_CALIB'
dim(x)
## S3 method for class 'RGList_CALIB'
length(x)
参数----------Arguments----------
参数:x
an object of class RGList_CALIB or SpikeList.
类RGList_CALIB或SpikeList的对象。
Details
详情----------Details----------
Microarray data objects share many analogies with ordinary matrices in which the rows correspond to spots or genes and the columns to arrays. These methods allow one to extract the size of microarray data objects in the same way that one would do for ordinary matrices.
芯片的数据对象共享许多普通的矩阵中的行对应点或基因和列数组类比。这些方法允许提取芯片的数据对象的大小,以同样的方式,一会做普通的矩阵。
A consequence is that row and column commands nrow(x), ncol(x) and so on also work.
一个后果是,行和列的命令nrow(x),ncol(x)等工作。
值----------Value----------
Numeric vector of length 2. The first element is the number of rows(genes) and the second is the number of columns(arrays).
数字矢量长度为2。第一个元素的行数(基因),二是数列(数组)。
作者(S)----------Author(s)----------
Hui Zhao
参考文献----------References----------
<h3>See Also</h3> <code>dim</code> in the base package
举例----------Examples----------
# for RGList_CALIB[为RGList_CALIB]
R <- G <- matrix(1:8,4,2)
rownames(R) <- rownames(G) <- c("g1","g2","g3","g4")
colnames(R) <- colnames(G) <- c("a1","a2")
RG <- new("RGList_CALIB",list(R=R,G=G))
dim(RG)
# for SpikeList[为SpikeList]
SR <- SG <- matrix(1:8,4,2)
rownames(SR) <- rownames(SG) <- c("s1","s2","s3","s4")
colnames(SR) <- colnames(SG) <- c("a1","a2")
spike <- new("SpikeList",list(R=SR,G=SG))
dim(spike)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|