Description Usage Arguments Value Examples
Constructs indicator columns for a factor variable.
1 | replace.factor.data.frame(name, data, iftrue, sep = "")
|
name |
column name |
data |
data frame |
iftrue |
value to enter in column for the indicator |
sep |
paste sep used to construct factor names |
Modified data frame
1 | replace.factor.data.frame("Species", data=iris, 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.