replaceMissing {WGCNA} | R Documentation |
Replace missing values with a constant.
Description
A convenience function for replacing missing values with a (non-missing) constant.
Usage
replaceMissing(x, replaceWith)
Arguments
x |
An atomic vector or array. |
replaceWith |
Value to replace missing entries in |
Value
x
with missing data replaced.
Author(s)
Peter Langfelder
Examples
logVec = c(TRUE, FALSE, NA, TRUE);
replaceMissing(logVec)
numVec = c(1,2,3,4,NA,2)
replaceMissing(numVec)
[Package WGCNA version 1.72-5 Index]