checkFormula | R Documentation |
Check that variables in formula are present in the data
checkFormula(formula, data)
formula |
formula of variables to check |
data |
data.frame storing variables in the formula |
If formula is valid, return TRUE. Else throw error
# Valid formula
dreamlet:::checkFormula(~speed, cars)
# Not valid formula
# dreamlet:::checkFormula( ~ speed + a, cars)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.