data <- c("SW", "E", "N", "WNW", "SSE", "SE", "SE", "SE", "E", "S", "SE", "E", "S",
"WNW", "S", "SE", "WSW","SW", "NNE","NNW","N", "ENE","S", NA ,"SSE","E",
"E", "S", "SE", "SSW","E", "E", "WNW","NW", "ESE","ESE","NW", "E", NA)
I'm new to R. There are some missing value in this attributes. I wanna replace them with mode imputation. What should I do? Appreciate for your help!