[R] Problem in using train() function in Caret

2019-04-01 Thread Chaoyang Li
Hi, Everyone, I have another question with using train() function in Caret package. When I coded tree.spam.cv <- train(Label~., data = train_spam_toke_df, methods = "rpart", trControl = cv_spam_control, tuneLenght = 7) it gave the error as follow, Error in terms.formula(formu

Re: [R] Pairwise testing with pairwise.prop.test

2019-04-01 Thread Stephen Ellison
> > 3) Is there a way to assign the numbers to the treatment group that they > were > > originally in? For example, "1" in the result should be "3", indicating that > > that was the temperature the experiment took place at. Pairwise.prop.test > > doesn't seem to accept matrices with more than 2 col

Re: [R] Pairwise testing with pairwise.prop.test

2019-04-01 Thread Jenny Liu
Thank you very much David, your answers are so clear and helpful!! Have a great week. Cheers, Jenny On Mon, Apr 1, 2019, 11:53 AM David L Carlson, wrote: > Inline > > > David L Carlson > Department of Anthropology > Texas A&M University > College Statio

Re: [R] Pairwise testing with pairwise.prop.test

2019-04-01 Thread David L Carlson
Inline David L Carlson Department of Anthropology Texas A&M University College Station, TX 77843-4352 -Original Message- > From: R-help On Behalf Of Jenny Liu > Sent: Sunday, March 31, 2019 6:10 PM > To: r-help@r-project.org > Subject: [R] Pairwis

Re: [R] Fwd: Error message: object of type 'closure' is not subsettable

2019-04-01 Thread Eric Berger
You may be calling a function when you think you are referring to an array. You can reproduce this error message as follows: f <- function(x) {x} f[1] HTH, Eric On Mon, Apr 1, 2019 at 5:49 PM Simrit Rattan wrote: > hey everyone :), > Subject: Re: Error message: object of type 'closure' is not

[R] Fwd: Error message: object of type 'closure' is not subsettable

2019-04-01 Thread Simrit Rattan
hey everyone :), Subject: Re: Error message: object of type 'closure' is not subsettable I am writing a package which should calculate the binary logistic regression. The function itself work perfectly, but if I want to load the function from my package it gives me the above mentioned error. I have

Re: [R] Problems install R package "Caret" in Rstudio version 3.3.3

2019-04-01 Thread John Kane
Hi Chaoyang, R 3.3.3 is rather old. If possible you should upgrade to 3.5.3. I believe 'caret' will install properly under R 3.5.3 On Mon, 1 Apr 2019 at 02:49, Chaoyang Li wrote: > > Hi, everyone, > I was trying to use the ‘caret’ for splitting dataset and cross > validation function, bu