Outer function in R
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.