[R] conditional function definition?

2003-09-20 Thread Ted Harding
Hi Folks, What is the best way to avoid a function being read in anew (and masking an exiting function) when a definition of it has already been established in R? Reason: Fernando Tusell and I are working up Schafer's 'CAT' for R (basically done now, just needs some cosmetic tidying up). This

Re: [R] conditional function definition?

2003-09-20 Thread Spencer Graves
Have you considered: exists(slice.index) [1] TRUE In other circumstances, I've tested various components of version. hope this helps. spencer graves (Ted Harding) wrote: Hi Folks, What is the best way to avoid a function being read in anew (and masking an exiting function) when a

Re: [R] conditional function definition?

2003-09-20 Thread kjetil brinchmann halvorsen
On 20 Sep 2003 at 15:07, Ted Harding wrote: What about exists(slice.index) [1] TRUE Kjetil Halvorsen Hi Folks, What is the best way to avoid a function being read in anew (and masking an exiting function) when a definition of it has already been established in R? Reason: Fernando

Re: [R] conditional function definition?

2003-09-20 Thread Uwe Ligges
(Ted Harding) wrote: Hi Folks, What is the best way to avoid a function being read in anew (and masking an exiting function) when a definition of it has already been established in R? Reason: Fernando Tusell and I are working up Schafer's 'CAT' for R (basically done now, just needs

Re: [R] conditional function definition?

2003-09-20 Thread Martin Maechler
Spencer == Spencer Graves [EMAIL PROTECTED] on Sat, 20 Sep 2003 08:12:52 -0700 writes: Spencer Have you considered: exists(slice.index) Spencer [1] TRUE SpencerIn other circumstances, I've tested various Spencer components of version. I'd recommend the latter,