t(base)
t()所属R语言包:base
Matrix Transpose
矩阵转置
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Given a matrix or data.frame x, t returns the transpose of x.
鉴于矩阵或data.framex,t返回x的移调。
用法----------Usage----------
t(x)
参数----------Arguments----------
参数:x
a matrix or data frame, typically.
矩阵或数据框,通常。
Details
详情----------Details----------
This is a generic function for which methods can be written. The description here applies to the default and "data.frame" methods.
这是一个通用的功能,该方法可以书面。这里的说明适用于默认和"data.frame"方法。
A data frame is first coerced to a matrix: see as.matrix. When x is a vector, it is treated as a column, i.e., the result is a 1-row matrix.
数据框首先被裹挟到一个矩阵:看到as.matrix。当x是一个向量,它被处理为一列,即,结果是一列的矩阵。
值----------Value----------
A matrix, with dim and dimnames constructed appropriately from those of x, and other attributes except names copied across.
一个矩阵,与dim和dimnames构造x适当,除了名字其他属性复制跨越。
注意----------Note----------
The conjugate transpose of a complex matrix A, denoted A^H or A^*, is computed as Conj(t(A)).
一个复杂的矩阵A共轭转置,记A^H或A^*,Conj(t(A))计算。
参考文献----------References----------
The New S Language. Wadsworth & Brooks/Cole.
参见----------See Also----------
aperm for permuting the dimensions of arrays.
aperm置换阵列的尺寸。
举例----------Examples----------
a <- matrix(1:30, 5,6)
ta <- t(a) ##-- i.e., a[i, j] == ta[j, i] for all i,j :[# - 即一个[我] == TA [J]所有的I,J:]
for(j in seq(ncol(a)))
if(! all(a[, j] == ta[j, ])) stop("wrong transpose")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|