Re: [R] quickly extract response from formula

2013-11-01 Thread Andreas Leha
r-help-boun...@r-project.org] On >> Behalf >> Of Andreas Leha >> Sent: Friday, November 01, 2013 2:50 PM >> To: r-h...@stat.math.ethz.ch >> Subject: Re: [R] quickly extract response from formula >> >> Hi David, >> >> thanks for your quick answ

Re: [R] quickly extract response from formula

2013-11-01 Thread William Dunlap
r-h...@stat.math.ethz.ch > Subject: Re: [R] quickly extract response from formula > > Hi David, > > thanks for your quick answer! > > David Winsemius writes: > > > On Oct 31, 2013, at 1:27 PM, Andreas Leha wrote: > > > >> Hi all, > >> > >

Re: [R] quickly extract response from formula

2013-11-01 Thread Andreas Leha
Hi David, thanks for your quick answer! David Winsemius writes: > On Oct 31, 2013, at 1:27 PM, Andreas Leha wrote: > >> Hi all, >> >> what is the recommended way to quickly (and without much burden on the >> memory) extract the response from a formula? > > If you want its expression value its

Re: [R] quickly extract response from formula

2013-10-31 Thread David Winsemius
On Oct 31, 2013, at 1:27 PM, Andreas Leha wrote: > Hi all, > > what is the recommended way to quickly (and without much burden on the > memory) extract the response from a formula? If you want its expression value its just form[[2]] If you wnat it evaluated in the environment of a dataframe th

[R] quickly extract response from formula

2013-10-31 Thread Andreas Leha
Hi all, what is the recommended way to quickly (and without much burden on the memory) extract the response from a formula? The standard way to extract the response from a formula seems to be via model.frame() or model.extract(), but that is very memory intensive. Here is a quick example, that (