[R] Input format for kcca in kernlab

Guru Ananda gua110 at bx.psu.edu
Wed Sep 30 17:19:09 CEST 2009


Hi,

I'm trying to use kcca function from the kernlab package, and it requires 2
input datasets, both of which need to be matrices containing data index by
row.
I have two data frame objects which I converted to matrices using
data.frame(x). Their dimensions are 2264*10 and 2264*4. I then tried running
kcca on the two data matrices, only to get this error: Error in kcca(xm, ym)
: Number of colums in x, y matrixes is not equall
Does anyone know why I'm encountering this error? 
Also, just to make the number of columns equal, I transposed my two data
matrices, and reran kcca, on which I got a different error message: Error in
VK[(n + 1):(2 * n), ] <- Ky : number of items to replace is not a multiple
of replacement length

I'm not sure how to proceed further. Any help would be greatly appreciated.

Thanks,
Guru.
-- 
View this message in context: http://www.nabble.com/Input-format-for-kcca-in-kernlab-tp25683222p25683222.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list