library(tidyverse)
<-data.frame(month=rep(month.abb,each=3),class=c('A','B',"C"),value=runif(36))
dfhead(df)
month class value
1 Jan A 0.54406781
2 Jan B 0.69672688
3 Jan C 0.37239935
4 Feb A 0.39981175
5 Feb B 0.63939803
6 Feb C 0.09215806