[R] Writing custom functions for rpart

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed May 9 16:01:16 CEST 2007


On Wed, 9 May 2007, hadley wickham wrote:

> Hi everyone,
>
> Does anyone has experience with (or documentation for) writing custom
> methods with rpart? The documentation hints: "Alternatively, 'method'
> can be a list of functions 'init', 'split' and 'eval'", but doesn't
> provide any details as to what those methods should do or what
> arguments they should take etc.
>
> I've tried looking at the package source (and the source for the S
> code it came from) but I can't follow what's going on in C vs R, and
> as the default methods are coded in a different way, there are no
> examples to follow.

But there are, in the tests directory.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-help mailing list