varSpec | R Documentation |
Obtain variable names, type (numeric, ordered, factor) and levels as a tidytable
varSpec(object)
object |
Cubist/C5 object |
A tidytable with three columns: variable(character), type(character) and levels(a list-column). For numeric variables, levels are set to NA.
## Not run:
data("attrition", package = "modeldata")
cols_att = setdiff(colnames(attrition), c("MonthlyIncome", "Attrition"))
cb_att = Cubist::cubist(x = attrition[, cols_att],
y = attrition[["MonthlyIncome"]]
)
varSpec(cb_att)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.