Proprosess a data set. It converts categorical data into binary variables if it is unordered or continuous variable from 0 to 1 if it is ordinal
1 2 | convert_categorical(x, type = "ordinal", ordered_list = list(),
var_name = "var", ...)
|
x |
input variable |
type |
ordinal or other |
ordered_list |
the rank ordering of an ordinal variable. Users are expected to provide a complete list of the rank ordering. Otherwise, a default rank ordering will be used. |
var_name |
the name of the input variable. This is used to to create vectorized input variables |
... |
other inputs |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.