Re: [R] Cannot scale data

2013-04-07 Thread Nicolás Sánchez
Of Course, that's the solution! Thankss! 2013/4/6 Rui Barradas > Hello, > > Can't you simply call svm() with scale = FALSE ? > If the variable is constant, it cannot be scaled to unit variance (and > zero mean). > > Hope this helps, > > Rui Barradas > > Em 06-04-2013 17:19, Nicolás Sánchez escr

Re: [R] Cannot scale data

2013-04-06 Thread Rui Barradas
Hello, Can't you simply call svm() with scale = FALSE ? If the variable is constant, it cannot be scaled to unit variance (and zero mean). Hope this helps, Rui Barradas Em 06-04-2013 17:19, Nicolás Sánchez escreveu: Hello! I have this error in R: In svm.default(x, y, scale = scale, ..., n

[R] Cannot scale data

2013-04-06 Thread Nicolás Sánchez
Hello! I have this error in R: In svm.default(x, y, scale = scale, ..., na.action = na.action) : Variable(s) ‘X.11.’ constant. Cannot scale data. Of course, I have a column of 25 rows where the values are always 0. Why it is not possible to have a column with 0? I need this column because is a