Re: [R] probelem of function inside function

2003-06-26 Thread Prof Brian Ripley
On Wed, 25 Jun 2003, array chip wrote: Actually, It is the question I encountered in S-Plus. Sorry that I forgot to mention. As Simon just pointed out, the function works fine in R (Thanks!). But in any case, does anyone know how to solve the problem in S-Plus? Assign to frame 1: see `S

[R] probelem of function inside function

2003-06-25 Thread array chip
Hi, I encountered a problem when I am trying to write my own function which contains another function. To simplify a problem, I tried the following simplified function, hope someone can idenfity the problem for me. I have a simple data frame called testdata as following:

RE: [R] probelem of function inside function

2003-06-25 Thread Simon Blomberg
Health Research Australian National University http://www.anu.edu.au/cmhr/ [EMAIL PROTECTED] +61 (2) 6125 3379 -Original Message- From: array chip [mailto:[EMAIL PROTECTED] Sent: Thursday, 26 June 2003 6:48 AM To: [EMAIL PROTECTED] Subject: [R] probelem of function inside function

Re: [R] probelem of function inside function

2003-06-25 Thread Thomas Lumley
On Wed, 25 Jun 2003, array chip wrote: Hi, I encountered a problem when I am trying to write my own function which contains another function. To simplify a problem, I tried the following simplified function, hope someone can idenfity the problem for me. snip

Re: [R] probelem of function inside function

2003-06-25 Thread array chip
Actually, It is the question I encountered in S-Plus. Sorry that I forgot to mention. As Simon just pointed out, the function works fine in R (Thanks!). But in any case, does anyone know how to solve the problem in S-Plus? Thanks --- Thomas Lumley [EMAIL PROTECTED] wrote: On Wed, 25 Jun 2003,