Re: [R] Formula in a model

2013-09-12 Thread Paulito Palmes
- Original Message - From: Gerrit Eichner To: Paulito Palmes Cc: "r-help@r-project.org" Sent: Thursday, 12 September 2013, 8:53 Subject: Re: [R] Formula in a model Hello, Paulito, my comments are inline below: > Thanks for the explanation. Let me give a specific example. Assum

Re: [R] Formula in a model

2013-09-11 Thread Paulito Palmes
modelRP2,newdata=mytable[,-6]) modelRP2=rpart(mytable[,-6],mytable[,6],method='anova')  have errors. _ From: Gerrit Eichner To: Paulito Palmes Cc: "r-help@r-project.org" Sent: Wednesday, 11 September 2013, 10:48 Subject: Re: [R] Formula in a model

Re: [R] Formula in a model

2013-09-11 Thread Paulito Palmes
Hi, I have a data.frame with dimension 336x336 called *training*, and another one called *observation* which is 336x1. I combined them as one table using table=data.frame(training, observation). table now has 336x337 dimension with the last column as the observation to learn using the training

Re: [R] Formula in R

2013-09-10 Thread Paulito Palmes
Hi, I have a data.frame with dimension 336x336 called *training*, and *observation* which is 336x1. I combined them as one table using table=data.frame(training, observation). table now has 336x337 dimension with the last column as the observation to learn using the training data of the rest