replaceMissing | R Documentation |
A convenience function for replacing missing values with a (non-missing) constant.
replaceMissing(x, replaceWith)
x |
An atomic vector or array. |
replaceWith |
Value to replace missing entries in |
x
with missing data replaced.
Peter Langfelder
logVec = c(TRUE, FALSE, NA, TRUE);
replaceMissing(logVec)
numVec = c(1,2,3,4,NA,2)
replaceMissing(numVec)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.