This a function to handle missing values in a dataframe column. It fills empty/missing rows values with the worst(lowest) available alpha/numeric value.

WOCF(x)

Arguments

x

data series/vector with missing values to fill (vector)

Value

returns the same data series with missing values filled in with the lowest alpha/numeric value

Examples

WOCF(c(1, 2, NA, 5, NA, 9, 10))
#> [,1] #> [1,] 1 #> [2,] 2 #> [3,] 1 #> [4,] 5 #> [5,] 1 #> [6,] 9 #> [7,] 10