View source: R/set_variable_format.R
set_variable_format | R Documentation |
This function changes the format of the set variables in the data to conform to the RSDA format.
set_variable_format(data, location, var)
data |
A conventional data. |
location |
The location of the set variable in the data. |
var |
The name of the set variable in the data. |
Return a dataframe in which a set variable is converted to one-hot encoding.
data("mushroom")
mushroom.set <- set_variable_format(data = mushroom, location = 8, var = "Species")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.