externalMatrix(externalVector)
externalMatrix()所属R语言包:externalVector
Create an external matrix object
创建一个外部的矩阵对象
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function can be used to create a new external matrix object.
此功能可用于创建一个新的外部矩阵对象。
用法----------Usage----------
externalMatrix(data = NA, nrow = 1, ncol = 1, byrow = FALSE, dimnames =
NULL, storageClass = (if (is(data, "externalVectorWithStorage"))
class(data@storage) else "simpleStorage"), indirect = FALSE)
参数----------Arguments----------
参数:data
An optional data vector.
一个可选的数据向量。
参数:nrow
The desired number of rows.
所需的行数。
参数:ncol
The desired number of columns.
所需的列数。
参数:byrow
Not used.
不使用。
参数:dimnames
A dimnames value for the external matrix: a list of length 2.
一个dimnames外部矩阵的值:长度为2list。
参数:storageClass
name of the subclass of "externalStorage" to be used for storing the external vector elements.
的的“externalStorage”被用于存储外部矢量元素的子类的名称。
参数:indirect
If TRUE, return an "indirectExternalVector" object.
如果TRUE,返回一个“indirectExternalVector的”对象。
Details
详情----------Details----------
This function is similar to the matrix function in R base package.
此功能是类似matrix研发碱基包的功能。
值----------Value----------
If indirect is FALSE (the default) a new external matrix object with correct dimension and dimnames. Otherwise create a new external vector object but return it by wrapping it in an "indirectExternalMatrix" object with the correct dimension and dimnames.
如果indirect是FALSE(默认)一个新的正确的维和dimnames的外部矩阵对象。否则,创建一个新的外部矢量对象,但它包裹在一个“indirectExternalMatrix”用对象正确维和dimnames的,它返回。
参见----------See Also----------
matrix
matrix
举例----------Examples----------
x <- externalMatrix(1:6, nrow=2, ncol=3)
dim(x)
x[1, 1:2] # drop = FALSE by default[默认值= FALSE下降]
log(x)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|