replace.NA(MCRestimate)
replace.NA()所属R语言包:MCRestimate
Replaces in a given numeric matrix NA values per row or per column.
在一个给定的数值矩阵每行或每列NA值取代。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Replaces in a given numeric matrix NA values per row or per column.
在一个给定的数值矩阵每行或每列NA值取代。
用法----------Usage----------
replace.NA(x, replacement, byRow = TRUE)
参数----------Arguments----------
参数:x
numeric input matrix
数字输入矩阵
参数:replacement
numeric vector containing the values which are used for NA replacement. If byRow = TRUE, this vector must contain as many values as matrix X has rows. Else, this vector must contain as many elements as matrix X has columns.
数字向量,是不适用更换使用的值。如果byRow = TRUE时,此向量必须包含许多值,作为矩阵X有行。否则,这个向量必须包含许多元素为矩阵X的列。
参数:byRow
logical. If TRUE, then NA values in row n are replaced by the value at position n in the vector 'replacement'. Else, NA values are replaced according to their column position.
逻辑。如果属实,那么娜在第n的值被替换的值在位置n“替代”向量。否则,不适用的值根据其列位置被替换。
值----------Value----------
The numeric input matrix with replaced NA values.
与数字输入矩阵取代北美值。
作者(S)----------Author(s)----------
Patrick Warnat <a href="mailto:p.warnat@dkfz-heidelberg.de">mailto:p.warnat@dkfz-heidelberg.de</a>
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|