Learn R Programming

stats (version 3.5.1)

asOneSidedFormula: Convert to One-Sided Formula

Description

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.

Usage

asOneSidedFormula(object)

Arguments

object

a one-sided formula, an expression, a numeric value, or a character string.

Value

a one-sided formula representing object

See Also

formula

Examples

Run this code
# NOT RUN {
asOneSidedFormula("age")
asOneSidedFormula(~ age)
# }

Run the code above in your browser using DataLab