R: Tilde Operator (original) (raw)
tilde {base} | R Documentation |
---|
Description
Tilde is used to separate the left- and right-hand sides in a model formula.
Usage
y ~ model
Arguments
y, model | symbolic expressions. |
---|
Details
The left-hand side is optional, and one-sided formulae are used in some contexts.
A formula has mode [call](../../base/help/call.html)
. It can be subsetted by[[
: the components are ~
, the left-hand side (if present) and the right-hand side in that order. (Thus one-sided formulae have two components.)
References
Chambers, J. M. and Hastie, T. J. (1992)_Statistical models._Chapter 2 of _Statistical Models in S_eds J. M. Chambers and T. J. Hastie, Wadsworth & Brooks/Cole.
See Also
[formula](../../stats/html/formula.html)
[Package _base_ version 4.6.0 Index]