View source: R/SOptim_ClassificationFunctions.R
generateFormula | R Documentation |
Generates a formula object to use in classification algorithms.
generateFormula(x)
x |
A calibration dataset with the first two columns containing the segment ID (SID) and train/test inputs (named as train). The remaining columns will be used as classification features. |
A formula
object with a similar structure to: train ~ feature_1 + ... + feature_n
.
By default removes the first 2 columns corresponding to the segment identifier (SID) and and the train columns.
DF <- data.frame(SID=1:10, train = 1:10, x1 = rnorm(10), x2 = rnorm(10), x3 = rnorm(10))
generateFormula(DF)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.