Online R Compiler

Group<-rep(c("A","B","C","D","E"),times=10) Rating<-sample(1:10,50,replace=TRUE) df<-data.frame(Group,Rating) head(df,20)