Skip to content
Prev 70058 / 398506 Next

Help with R

Hi Gabor,
On 05-May-05 Gabor Grothendieck wrote:
Thanks for your suggestions and comments, Gabor.

However, I now have the Green Book. There is some mention of
'rapply' (pp. 174-5, 371 where the function is used in the
definition of a function, and 430 where it is stated that "The
S and C computations for rapply follow the style of the example
here", the example in question being C code for "a simplified
version of the S function lapply"). However, there is no code
anywhere for rapply itself!

While the above possibly amount to enough hints for a good R
programmer to work out an implementation for rapply, this is at
present a level or two above my skills.

The S-plus code for rapply can be found by listing "rapply".
There are two things wrong with doing this. One is that this
code involves at least two functions which do not seem to
be available in R -- new.frame() and the function which
occurs in .Call(2s_tree_apply", .... ). One would need to
infer what these do and implement them in R.

The other is that I'm not at all keen on the idea of pinching
code from a proprietary product (S-plus).

So I'm wondering if there is any R code that implements the
equivalent of 'rapply' or could readily be extended to do so.

With thanks, and best wishes,
Ted.


--------------------------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding at nessie.mcc.ac.uk>
Fax-to-email: +44 (0)870 094 0861
Date: 19-May-05                                       Time: 22:51:48
------------------------------ XFMail ------------------------------