dplyr - arrange () according to two criteria per group

后端 未结 3 1063
名媛妹妹
名媛妹妹 2021-01-28 05:50

I have hourly weather collected for hundreds of farms for a period of five weeks before a sampling event. I want to determine the average Air_Temp for the three weeks prior to t

3条回答
  •  庸人自扰
    2021-01-28 05:58

    In addition to my comments you can also do the following :

    sorted <- Weather %>% 
              arrange(Date, Hour) %>%
              group_by(File)
    

提交回复
热议问题