Re: [R] Missing index in vector assignment

2010-03-17 Thread Chaehan So
Petr - your suggestion WORKS! Thank you so much, really! happy-Chaehan On Wed, Mar 17, 2010 at 2:22 PM, Petr PIKAL wrote: > Hi > > > r-help-boun...@r-project.org napsal dne 17.03.2010 13:04:05: > > > Jim & Petr, > > Thank you for your hint - I am really grateful, because they helped me > to >

Re: [R] Missing index in vector assignment

2010-03-17 Thread Petr PIKAL
Hi r-help-boun...@r-project.org napsal dne 17.03.2010 13:04:05: > Jim & Petr, > Thank you for your hint - I am really grateful, because they helped me to > get one step further, > and although now the problem lies somewhere else, you encouraged that we can > find the > solution soon! > > 1. T

Re: [R] Missing index in vector assignment

2010-03-17 Thread Chaehan So
Jim & Petr, Thank you for your hint - I am really grateful, because they helped me to get one step further, and although now the problem lies somewhere else, you encouraged that we can find the solution soon! 1. To Petr's comments Petr, your hint to define y: y <- LVvar[,1, drop=FALSE] did solv

Re: [R] Missing index in vector assignment

2010-03-16 Thread jim holtman
Please provide what LVvar is. At least provide str(LVvar), or preferably a 'dput' of the object. PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. On Tue,

[R] Missing index in vector assignment

2010-03-16 Thread Chaehan So
Dear r-helpers, I am getting a mismatch error between two variables: svp <- ksvm(x, y, type="nu-svc") Error in .local(x, ...) : x and y don't match. and I suspect that it might be due to missing index in the y variable which I defined as: y <- (LVvar[,1]) I tried various methods to make