# NOT RUN {
### the following example will generate a train dataset named "train" which
### includes 70% of the records, while generating a test
### dataset called "test" and that includes 30% of the the original dataset.
df <- Theoph
df$Subject <- NULL
train_test(data=df,train_name="train",test_name="test",prop=0.7,seed=2)
# }
Run the code above in your browser using DataLab