col01scale(sfsmisc)
col01scale()所属R语言包:sfsmisc
Matrix Scaling Utilities
矩阵缩放公用事业
译者:生物统计家园网 机器人LoveR
描述----------Description----------
col01scale and colcenter (re)scale the columns of a matrix. These are simple one-line utilities, mainly with a didactical purpose.
col01scale和colcenter(RE)的规模矩阵的列。这些都是简单的行实用程序,主要是用了教学的目的。
用法----------Usage----------
colcenter (mat)
col01scale(mat, scale.func = function(x) diff(range(x)), location.func = mean)
参数----------Arguments----------
参数:mat
numeric matrix, to rescaled.
数字矩阵,重新调整。
参数:scale.func, location.func
two functions mapping a numeric vector to a single number.
两个函数一个数值向量映射到一个单一的数字。
值----------Value----------
a matrix with the same attributes as the input mat.
矩阵具有相同属性的输入mat。
(作者)----------Author(s)----------
Martin Maechler
参见----------See Also----------
The standard R function scale().
标准的R函数scale()。
实例----------Examples----------
## See the simple function definitions:[#简单的函数定义:]
colcenter ## simply one line[#只是一个线]
col01scale# almost as simple[几乎一样简单]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|