0

I have grouped some data by month and year and am now plotting it. Does anyone know how to sort the month and years to the right order in an automated way so that it will work on any set of month and years (i.e. not give the levels manually).

Example data

df <-  data.frame(dates = c("01/2019", "02/2019", "07/2018", "09/2018", "10/2018", "11/2018", "12/2018"), values= c(0,1,2,3,4,5,6))
RLave
  • 8,144
  • 3
  • 21
  • 37
unknown
  • 853
  • 1
  • 10
  • 23
  • 1
    You shouldn't have edited the closed question, you should unedit and instead ask a new question. Once a question has been closed as dupe people can't answer, unless you vote for reopen. :) – RLave Feb 08 '19 at 11:29
  • OK thanks for the info! I've made a new question – unknown Feb 08 '19 at 11:39

0 Answers0