Description Usage Arguments Value Note Author(s) See Also Examples
View source: R/createFormula.r
Elements of the vector is evenly distributed to both of the formula. Each element in the formula is seperated by +
.
1 | createFormula(x, right = TRUE)
|
x |
A vector of character |
right |
If there is only one element in |
Formula
For internal use of ezsim. It aims at creating formula for facets in ggplot2.
TszKin Julian Chan ctszkin@gmail.com
1 2 3 4 5 6 7 8 | ## Not run:
createFormula(letters[1]) ## . ~ a
createFormula(letters[1],right=FALSE) ## a ~ .
createFormula(letters[1:3]) ## c ~ a + b
createFormula(letters[1:4]) ## c + d ~ a + b
createFormula(letters[1:4],right=FALSE) ## a + b ~ c + d
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.