Split data from vector Y into two sets in predefined ratio while preserving relative ratios of different labels in Y. Used to split the data used during classification into train and test subsets.
number of strata.
population size of each stratum.
selected only: show the table with selected observations only.
all observations with remark: show the table with all observations and a remark field.
fixed schedule: use a fixed seed in R to generate the same simulation results.
random schedule: use a random seed in R to generate the different simulation results.
Jarek Tuszynski (2014). caTools: Contains several basic utility functions including: moving (rolling, running) window statistic functions, read/write for GIF and ENVI binary files, fast calculation of AUC, LogitBoost classifier, base64 encoder/decoder, round-off-error-free sum and cumsum, etc. R package version 1.17.1.