[R] Array within an array

2008-04-21 Thread Carla Rebelo
0.5211580 How can I divide the third dimension in more three? Thank You! Carla Rebelo __ R-help@r-project.org 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

[R] Error

2008-03-07 Thread Carla Rebelo
Hello! I need some help, because I don't know how this error means: Error: variables ‘Output1’, ‘Output2’, ‘Output3’, ‘Output4’, ‘Output5’ were specified with different types from the fit Execution halted Can you help me? Thank You __

[R] Cross Validation

2008-02-27 Thread Carla Rebelo
Hello, How can I do a cross validation in R? Thank You! __ R-help@r-project.org 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,

[R] contingency table

2008-02-14 Thread Carla Rebelo
Hello! May you help me? I'm trying to do a contingency table using this data(iris) library(rpart) modelo - rpart(Species ~., iris) prev - predict(modelo, iris) Finally the contingency table table(iris$Species, prev) But an error occurs: Error in table(iris$Species, prev) : all

[R] The function predict

2008-02-11 Thread Carla Rebelo
Good Morning! May you help me? I need to understand the function predict. I need to understand the algorithm implemented, the calculations associated. Where can I find this information? Thank You! __ R-help@r-project.org mailing list

[R] Concatenate a Variable

2008-02-01 Thread Carla Rebelo
Good morning! I do not speak English very well and so I will try to explain the best I can. I have this: tabela[,1] [1] a a b b a c b a c c c c c Levels: a b c unique(tabela[,1]) [1] a b c Levels: a b c var-unique(tabela[,1])[1] var [1] a Levels: a b c But if I concatenate like this

[R] Recursive Function

2008-01-22 Thread Carla Rebelo
It is possible to place two functions in a recursive function Main results so as to simultaneously? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

[R] Two dependent variables in formula

2008-01-09 Thread Carla Rebelo
Hello, I' m trying to change the formula in the rpart function. The format of a general formula is Answer ~ expression, where Answer is the dependent variable and expression is set of terms containing the independent variables and separated by operators. I want the response of the