I want to sort month names. When I use the strptime function it returns an error as the attribute values only contains month names. When I use the sort function, the months are sorted alphabetically.
I want to sort month names. When I use the strptime function it returns
Share
You could always convert your data to a factor. For example, suppose we have
then to convert to a factor, we have:
which on sorting gives: