[R] How to personalize the rpart function: t.default(x)
Simone Vantini
vantini at mate.polimi.it
Mon Sep 6 20:21:56 CEST 2004
> Thanks a lot!I've found that the matrix argument of the function
> t.default() is init$y. I thought that y and x were the response and the
> predective variables of the data of the node, isn't it?
On Thu, 2 Sep 2004, Simone Vantini wrote:
>
>> I'm trying to personalize the rpart function by introducing a
>> list('init','split','eval') in the argument method. But I receive an
>> error message:"Error in t.default(x): argument is not a matrix".
>> Can anyone tell me what the argument of this function is or where this
>> function appears in the rpart function.Thanks Simone Vantini
>
> t.default is the default method for the transpose function t() in R
> itself.
>
> Try help!
>
> Description:
>
> Given a matrix or 'data.frame' 'x', 't' returns the transpose of
> 'x'.
>
>
> --
> 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