genescale(genefilter)
genescale()所属R语言包:genefilter
Scales a matrix or vector.
尺度矩阵或向量。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
genescale returns a scaled version of the input matrix m by applying the following formula to each column of the matrix:
genescale返回的输入矩阵m的缩小版本,采用下列公式计算矩阵的每一列:
用法----------Usage----------
genescale(m, axis=2, method=c("Z", "R"), na.rm=TRUE)
参数----------Arguments----------
参数:m
Input a matrix or a vector with numeric elements.
输入一个矩阵或矢量的数字元素。
参数:axis
An integer indicating which axis of m to scale.
一个整数,表示规模m轴。
参数:method
Either "Z" or "R", indicating whether a Z scaling or a range scaling should be performed.
任的“Z”或“R”的指示是否应执行的Z缩放或一个范围缩放。
参数:na.rm
A boolean indicating whether NA's should be removed.
一个布尔值,指示是否应去掉NA的。
Details
详情----------Details----------
Either the rows or columns of m are scaled. This is done either by subtracting the mean and dividing by the standard deviation ("Z") or by subtracing the minimum and dividing by the range.
无论是行或m的列缩放。这是通过减去平均分和标准偏差(“Z”)的,或,由subtracing最低除以范围。
值----------Value----------
A scaled version of the input. If m is a matrix or a dataframe then the dimensions of the returned value agree with that of m, in both cases the returned value is a matrix.
输入一个缩放版本。如果m是一个matrix或dataframe然后返回值的尺寸与m,在这两种情况下返回值是一个matrix同意 。
作者(S)----------Author(s)----------
R. Gentleman
参见----------See Also----------
genefinder,scale
genefinder,scale
举例----------Examples----------
m <- matrix(1:12, 4, 3)
genescale(m)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|