I want to sort my dataframe on the dates column. My example dataframe:
library(tidyverse)
dates <- tibble(date = c("01-01-2017", "02-03-2017", "01-02-2017", "02-01-2017", "01-03-2017"),
value = c(8, 12, 4, 14, 11))
So the following isn't working because it only sorts on the days.
arrange(dates, date)