I\'ve just started using R and I\'m not sure how to incorporate my dataset with the following sample code:
sample(x, size, replace = FALSE, prob = NULL)
set.seed(123) llwork<-sample(1:length(mydata),round(0.75*length(mydata),digits=0)) wmydata<-mydata[llwork, ] tmydata<-mydata[-llwork, ]