powered by
This function changes the format of the set variables in the data to conform to the RSDA format.
set_variable_format(data, location, var)
Return a dataframe in which a set variable is converted to one-hot encoding.
A conventional data.
The location of the set variable in the data.
The name of the set variable in the data.
data("mushroom") mushroom.set <- set_variable_format(data = mushroom, location = 8, var = "Species")
Run the code above in your browser using DataLab