[R] Writing custom functions for rpart

From: hadley wickham <h.wickham_at_gmail.com>
Date: Wed, 09 May 2007 14:42:39 +0200

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.



R-help_at_stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 09 May 2007 - 13:09:17 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 09 May 2007 - 14:31:21 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.