Re: [R] error in plotting model from kernlab

2019-01-08 Thread PIKAL Petr
t;. Cheers Petr > -Original Message- > From: Luigi Marongiu > Sent: Tuesday, January 8, 2019 4:40 PM > To: PIKAL Petr > Cc: r-help > Subject: Re: [R] error in plotting model from kernlab > > Hi, > the maintainer hasn't answered yet. The problem with &#

Re: [R] error in plotting model from kernlab

2019-01-08 Thread Luigi Marongiu
Hi, the maintainer hasn't answered yet. The problem with 'acc' is that yes the objects are not of the same length but they should be: according to the manual, ' table(pred, df$cons)' would return a 2x2 matrix of the results. This is not the case, so there is a problem with the model -- that is why

Re: [R] error in plotting model from kernlab

2019-01-08 Thread PIKAL Petr
Hi I cannot help you with kernlab > > pred = predict(mod, df, type = "probabilities") > > acc = table(pred, df$cons) > Error in table(pred, df$cons) : all arguments must have the same length > which again is weird since mod, df and df$cons are made from the same > dataframe. Why not check leng

Re: [R] error in plotting model from kernlab

2019-01-07 Thread Luigi Marongiu
Sorry but I don't understand the questions. I sent this question to R-help, not to an individual. I will use the REPLY TO ALL function when replying, apologies if I missed before. The question is related to an R package so I placed to the R community. On Mon, Jan 7, 2019 at 5:47 PM Jeff Newmiller

Re: [R] error in plotting model from kernlab

2019-01-07 Thread Jeff Newmiller
a) When re-posting a question, whether on the same or different forums, it is best practice (netiquette) to link to or reply to the earlier question. [1] b) Note the guidance in the Posting Guide: For questions about functions in standard packages distributed with R (see the FAQ Add-on packages