[R] How to personalize the rpart function: t.default(x)

Simone Vantini vantini at mate.polimi.it
Mon Sep 6 20:20:57 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 top of what Rolf had said, traceback() would help tracking down how
> the error happened.
>
> Andy
>
>> From: Rolf Turner
>>
>> t is for transpose; look at ?t, ?t.default,
>> ?t.data.frame
>>
>> Bottom line:  Somewhere in your code you are trying to transpose
>> something that is not a matrix.  (Or you are passing to an existing
>> function an object which that function expects to be a matrix, but
>> isn't.)
>>
>> 			cheers,
>>
>> 				Rolf Turner
>> 				rolf at math.unb.ca
>>
>> ______________________________________________
>> 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
>>
>>
>
>
> ------------------------------------------------------------------------------> Notice:  This e-mail message, together with any attachments, contains
> information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
> New Jersey, USA 08889), and/or its affiliates (which may be known
> outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD
> and in Japan, as Banyu) that may be confidential, proprietary
> copyrighted and/or legally privileged. It is intended solely for the
> use of the individual or entity named on this message.  If you are not
> the intended recipient, and have received this message in error, please
> notify us immediately by reply e-mail and then delete it from your
> system.
> ------------------------------------------------------------------------------




More information about the R-help mailing list