Names, expressions, numeric values, and character strings are converted to
one-sided formulae. If object
is a formula, it must be
one-sided, in which case it is returned unaltered.
asOneSidedFormula(object)
a one-sided formula, an expression, a numeric value, or a character string.
a one-sided formula representing object
# NOT RUN {
asOneSidedFormula("age")
asOneSidedFormula(~ age)
# }
Run the code above in your browser using DataLab