Description Usage Arguments Value
This function converts a single column into a matrix of binary flags, one for each unique value the column can take. The columns can then be readily joined with the original data frame using cbind. Be careful with this function at present, as you can easily flood memory by choosing columns with large numbers of unique values.
1 |
df |
- a data frame x - a single column name or number |
Returns a new data frame with c - 1 binary columns representing the removed column, where c is the number of unique values. The modal value is removed altogether, and used as the reference value. This function is the base for flg.create, and thus it's not exported.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.