createDataSet: Create data set using data, targets, a formula, and possibly an existing data
set.
Description
Based partly on code from nnet.
Usage
createDataSet(data, targets, formula, dataSet, ...)
Arguments
data
Input data, possibly also target data if a formula is used.
dataSet
'>DataSet
to be used as the basis for the
new one