[R] R packages/code for CART that is written entirely in R (not C)

Andrew Crane-Droesch andrewcd at gmail.com
Wed Nov 11 20:26:32 CET 2015


Thanks for the reference!  I'd still be grateful for any pointers 
towards code for CART that has been written entirely in R, perhaps that 
hasn't made its way onto CRAN.

On 11/11/2015 02:00 PM, David Winsemius wrote:
>> On Nov 11, 2015, at 9:25 AM, Andrew Crane-Droesch <andrewcd at gmail.com> wrote:
>>
>> Dear List,
>>
>> I'd like to make a few modifications to the typical CART algorithm, and
>> I'd rather not code the whole thing from scratch.  Specifically I want
>> to use different in-sample and out-of-sample fit criteria in the split
>> choosing and cross-validation stages.
>>
>> I see however that the code for CART in both the rpart and the tree
>> packages is written in C.
>>
>> Two questions:
>>
>>   * Where is the C code?  It might be possible to get a C-fluent
>>     programmer to help me with this.
>>   * Is there any code for CART that is written entirely in R?
> Read: "R Help Desk: Accessing the Sources” by Uwe Ligges in:
>
> https://www.r-project.org/doc/Rnews/Rnews_2006-4.pdf
>
> The current sources are here:
>
> https://svn.r-project.org/R/trunk/
>
>
>> Thanks,
>> Andrew
>>
>> 	[[alternative HTML version deleted]]
> For future questions, this is a plain text mailing list.
>
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>> David Winsemius
> Alameda, CA, USA
>



More information about the R-help mailing list