Re: [R] stumped by eval

2008-02-13 Thread Ross Boylan
On Wed, 2008-02-13 at 11:18 +0100, Peter Dalgaard wrote: > Berwin A Turlach wrote: > > G'day Peter, > > > > On Wed, 13 Feb 2008 08:03:07 +0100 > > Peter Dalgaard <[EMAIL PROTECTED]> wrote: > > > > > >> Ross Boylan wrote: > >> > >>> In the following example, the inner evaluation pulls in th

Re: [R] stumped by eval

2008-02-13 Thread Peter Dalgaard
Berwin A Turlach wrote: > G'day Peter, > > On Wed, 13 Feb 2008 08:03:07 +0100 > Peter Dalgaard <[EMAIL PROTECTED]> wrote: > > >> Ross Boylan wrote: >> >>> In the following example, the inner evaluation pulls in the global >>> value of subset (a function) rather than the one I thought I was

Re: [R] stumped by eval

2008-02-13 Thread Berwin A Turlach
G'day Peter, On Wed, 13 Feb 2008 08:03:07 +0100 Peter Dalgaard <[EMAIL PROTECTED]> wrote: > Ross Boylan wrote: > > In the following example, the inner evaluation pulls in the global > > value of subset (a function) rather than the one I thought I was > > passing in (a vector). Can anyone help me

Re: [R] stumped by eval

2008-02-12 Thread Peter Dalgaard
Ross Boylan wrote: > In the following example, the inner evaluation pulls in the global value > of subset (a function) rather than the one I thought I was passing in (a > vector). Can anyone help me understand what's going on, and what I need > to do to fix the problem? > > f0 <- function(formula,

[R] stumped by eval

2008-02-12 Thread Ross Boylan
In the following example, the inner evaluation pulls in the global value of subset (a function) rather than the one I thought I was passing in (a vector). Can anyone help me understand what's going on, and what I need to do to fix the problem? f0 <- function(formula, data,