R/impute-median.R
impute_median.Rd
Impute the median value into a vector with missing values
impute_median(x) # S3 method for default impute_median(x) # S3 method for factor impute_median(x)
x | vector |
---|
vector with median values replaced
#> [1] -0.3795665 -0.5889187 1.4241911 -0.7945301 -0.8508759 -0.3795665 #> [7] -0.3795665 0.6699887 1.0867538 -0.3795665