Skip to content
Prev 75670 / 398502 Next

Dots in models formulae

On Tue, 16 Aug 2005, Sundar Dorai-Raj wrote:

            
(It does not cover this, as it is part of the interpretation of a 
formula.)

Yes, it must depend on context, as an R function can do anything it likes 
with a formula (including making y ~ x mean the regression of x on y).

If terms.formula() is used, y ~ . means what Uwe said, _if_ there is a 
'data' argument.  However, if not it has its literal meaning (a variable 
named '.'), at least until 2.2.0.