[R] distance matrix?
clips10
m.mcquillan at lancaster.ac.uk
Mon Jun 28 12:21:31 CEST 2010
I have a vector 0 to 10 and want to create a matrix with the differences
between the numbers in it for instance:
0 1 2 3 4 5 6 7 8 9 10
0 0 1 2 3 4 5 6 7 8 9 10
1 1 0 1 2 3 4 5 6 7 8 9
2
3
4
5
6
7
8
9
10
Etc etc. So that the matrix is filled with the differences between in
absolute value so there are no negatives.
Any ideas?
Thanks
--
View this message in context: http://r.789695.n4.nabble.com/distance-matrix-tp2270722p2270722.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list