[R] dot in formula

Bjørn-Helge Mevik bhx2 at mevik.net
Fri Jun 3 10:09:08 CEST 2005


Adrian Baddeley writes:

> I want to manipulate a formula object, containing the name "."
> so that "." is replaced by a desired (arbitrary) expression.

How about

myf <- y ~ .
update(myf, . ~ -. + X)

-- 
HTH,
Bjørn-Helge Mevik




More information about the R-help mailing list