[R] Outer function in R
Dzu
dizem.uerek at alumni.fh-aachen.de
Tue Jul 2 18:52:29 CEST 2013
Dear members
I am trying to apply the function kl.dist (Kullback-Leibler Distance
measure) to multiple matrixes.
I tried the following :
veckldist <- Vectorize(kl.dist)
distancematrix <- outer (matrix1,matrix2, "veckldist")
But the code is complaining that the list of the object does not match. The
lengths of my matrixes are same
How could I fix the error?
Thanks
--
View this message in context: http://r.789695.n4.nabble.com/Outer-function-in-R-tp4670738.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list