Description Usage Arguments Examples
This function takes in a named list and returns a data frame containing the binary transformation of each of the named variables. This allows you to do batch the flag conversion of all factor variables in a data set. Be careful with this function, as it's easy to flood memory by batching more than one column with large numbers of unique entries.
1 | flg.create(df, name.list)
|
df |
- A data frame name.list - A list of the columns to be transformed. |
1 | head(flg.create(iris, list("Species")))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.