This function replaces all NAs in a vector or data.frame
.
If the vector (or column) is numeric, NAs get replaced by the median.
If the vector (or column) is a character or factor, NAs get
replaced by the mode.
1 | replaceNA(x)
|
x |
A vector or |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.