# NOT RUN {
banana <- liquidData('banana-mc')
## to get a smaller sample
liquidData('banana-mc',prob=0.2)
## if you disable stratified then there is some variance in the group sizes:
liquidData('banana-mc',prob=0.2, stratified=FALSE)
# }
# NOT RUN {
## to downlad a file from our web directory
liquidData("gisette")
## To get a list of available names:
liquidData()
# }
# NOT RUN {
## to produce an liquidData from some dataset
ttsplit(iris)
# the following will be stratified
ttsplit(iris,'Species')
# specify a testSize:
ttsplit(trees, testSize=10)
## example for sample.liquidData
banana <- liquidData('banana-mc')
sample.liquidData(banana, prob=0.1)
# this is equivalent to
liquidData('banana-mc', prob=0.1)
## example for print
banana <- liquidData("banana-mc")
print(banana)
# }
Run the code above in your browser using DataCamp Workspace