## Not run:
# # Create your data
# x <- data.frame(1:10,10:1)
# y <- 1:10
#
# # Sampling with provided y
# trainSample(x,y,numberCores=2,samplingSize = 0.5)
#
# # Sampling without provided y
# trainSample(x,numberCores=2,samplingSize = 0.5)
# ## End(Not run)
Run the code above in your browser using DataLab