I have a vector that I want to sort using sort
but, in doing so, I do not see the missing values ( NA
). How to make? Thankful.
> x
[1] "b" "c" "a" NA NA "b" "c" "a" NA NA "b" "c" "a"
> sort(x)
[1] "a" "a" "a" "b" "b" "b" "c" "c" "c"