View source: R/create_algorithm.R
create_algorithm | R Documentation |
Creates an excel workbook with two worksheets. The first sheet contains the classification function coefficients from a model created using rsegmenter::lda. The second sheet contains the training data and excel formulae to assign the training data to a segment, using the classification function coefficients.
create_algorithm(df, id, indeps, ldamodel)
df |
data.frame of numeric variables. |
id |
unique row identifier. |
indeps |
predictor variables. |
ldamodel |
lda model object. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.