Re: [R] Outer function in R

2013-07-02 Thread Jeff Newmiller
Read the Posting Guide. The example you provide below is not reproducible [1], so we cannot tell what you're giving to the outer() function. [1] http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example -

[R] Outer function in R

2013-07-02 Thread Dzu
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 mat