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.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to