Online R Compiler

x1<-sample(c(NA,1,0),20,replace=TRUE) x2<-rpois(20,5) x3<-sample(c(NA,5,10),20,replace=TRUE) df1<-data.frame(x1,x2,x3) df1