Sorting in R
I always need to sort data frames, and I always forget how to do it somehow. So I tought I can write a small post to remember it.
When you have a dataframe you can easily sort it by a column with the
order command. Let’s consider the following example (the dataframe has been…