asOneSidedFormula
Convert to One-Sided Formula

Description

Create a formula with no left hand side (only predictors, no response).

Usage

asOneSidedFormula(object, env = parent.frame())

Arguments

object A formula, call, character string, name, or number.
Value
If object is a formula (the usual case) return it if it has no left hand side but stop if it does. If it is a call to ~ convert it to a formula object and treat it as above.
Otherwise, if object is a name or expression return a formula with object on the right hand side. If object is a character string, convert to a name object and treat it as above.
See Also
formula
Examples
asOneSidedFormula( ~ p1 + p2)
asOneSidedFormula("p1")
Package stats version 6.1.1-7
Package Index