search for: 11x3

Displaying 1 result from an estimated 1 matches for "11x3".

Did you mean: 113
2011 Mar 24
1
Two matrix loop
...e above creates my two matrices. I have three donors, and eleven receivers (rows), with four measures (columns) in each matrix. And now, I want to apply the daisy() function from the cluster library, to calculate distances between my three donors, and eleven receivers. The end result should be a 11x3 matrix with distances between the units from the two matrices. I can calculate one distance measure (ie donor 1 and receiver 1). Like this: library(cluster) daisy(rbind(donor[1,], receiver[1,]), metric = 'gower') My first attempt was a simple nested for-loop. But that one was discarded a...