search for: secrow

Displaying 1 result from an estimated 1 matches for "secrow".

Did you mean: escrow
2006 Apr 04
1
Help on computing a matrix from another matrix in R
...emp[2,])) My issue is that I want a 29 x 29 matrix of these similarity scores. I have made some progress, but I cannot quite get it. The closest code I have is the following (all on one line, of course): ans<- for (firstrow in 1:29) { for (escrow in 1:29) { print(sum(abs(temp[firstrow,] - temp[secrow,]) ) ) } } I realize that print is not the right function to be using, but at least it displays my results in a long list. Also, ans has the following characteristics: > ans [1] > dim(ans) NULL > mode(ans) 1] "numeric" Can someone help me by telling me how to get this into...