i_median {COINr} | R Documentation |
Impute by median
Description
Replaces NA
s in a numeric vector with the median of the non-NA
values.
Usage
i_median(x)
Arguments
x |
A numeric vector |
Value
A numeric vector
Examples
x <- c(1,2,3,4, NA)
i_median(x)
[Package COINr version 1.1.14 Index]