Re: [R] Extracting formula from an lm object

2008-08-24 Thread Murray Jorgensen
Thanks to Professors Ripley and Turlach for their help. Brian's solution was simple and elegant but Berwin's was also informative. Murray Jorgensen Prof Brian Ripley wrote: On Sun, 24 Aug 2008, Berwin A Turlach wrote: G'day Murray, On Sun, 24 Aug 2008 18:34:39 +1200 Murray Jorgensen <[EMAIL

Re: [R] Extracting formula from an lm object

2008-08-24 Thread Prof Brian Ripley
On Sun, 24 Aug 2008, Berwin A Turlach wrote: G'day Murray, On Sun, 24 Aug 2008 18:34:39 +1200 Murray Jorgensen <[EMAIL PROTECTED]> wrote: I want to extra the part of the formula not including the response variable from an lm object. For example if the lm object ABx.lm was created by the call

Re: [R] Extracting formula from an lm object

2008-08-24 Thread Berwin A Turlach
G'day Murray, On Sun, 24 Aug 2008 18:34:39 +1200 Murray Jorgensen <[EMAIL PROTECTED]> wrote: > I want to extra the part of the formula not including the response > variable from an lm object. For example if the lm object ABx.lm was > created by the call > > ABx.lm <- lm( y ~ A + B + x, ...) > >

[R] Extracting formula from an lm object

2008-08-24 Thread Murray Jorgensen
I want to extra the part of the formula not including the response variable from an lm object. For example if the lm object ABx.lm was created by the call ABx.lm <- lm( y ~ A + B + x, ...) Then ACx.lm is saved as part of a workspace. I wish to extract "~ A + B + x". Later in my code I will fi