Based partly on code from nnet.
createDataSet(data, targets, formula, dataSet, ...)
Input data, possibly also target data if a formula is used.
Target data.
Model formula
.
Further parameters.
createDataSet.default, createDataSet.formula, createDataSet.DataSet