Order a dataframe according to non-numeric variables

Hi guys!

I have a large dataframe with information related to surface ozone from 62 stations. One column is for the code of the station, another for the date (dates repeated for each station) and the other contains ozone concentration.
The dataframe is sorted by the date (starting in 2000 and ending in 2017). I need this dataframe to be sorted by the code of the station.
Do you know how to code it?

Thanks in advance!!

library(dplyr)

df %>%
  arrange(stationcode)
1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.