Online R Compiler

y<-sample(c("Hotel","Motel","Restaurant"),20,replace=TRUE) df2<-data.frame(y) df2