Re: [R] nested calls, variable scope

2008-08-01 Thread Jacob Wegelin
, > > Bert Gunter > Genentech > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > On > Behalf Of Jacob Wegelin > Sent: Thursday, July 17, 2008 1:58 PM > To: [EMAIL PROTECTED] > Subject: [R] nested calls, variable scope > > Below i

[R] nested calls, variable scope

2008-07-17 Thread Jacob Wegelin
Below is an example of a problem I encounter repeatedly when I write functions. A call works at the command line, but it does not work inside a function, even when I have made sure that all required variables are available within the function. The only way I know to solve it is to make the require

[R] nested calls, variable scope

2008-07-17 Thread Jacob Wegelin
Below is an example of a problem I encounter repeatedly when I write functions. A call works at the command line, but it does not work inside a function, even when I have made sure that all required variables are available within the function. The only way I know to solve it is to make the re