Description Usage Arguments Value Examples
Constructs indicator terms for a factor variable.
1 | replace.factor.formula(name, formula, data, sep = "")
|
name |
term name |
formula |
formula |
data |
a data frame to be used to identify factor levels |
sep |
paste sep used to construct factor names |
Modified formula
1 2 | replace.factor.formula("Species", Sepal.Length ~ Species, iris)
replace.factor.formula("Species", Sepal.Length ~ Petal.Length : Species, iris)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.