Dear forumites

As a newbie I try to figure out whether R can do a certain job quicker than 
other programs and it seems so, but I don't find a solution to a seemingly 
simple problem:

I have built a matrix of distance with as.matrix(dist()) with several hundred 
rows and columns
            1          2          3          4
1          0          1.3       1.6       2.1
2          1.3       0          1.9       1.7
3          1.6       1.9       0          2.2
4          2.1       1.7       2.2       0

Now I need for every column a frequency table of the type

Class.  1          2          3          4
0.5       0          0          0          0
1          0          0          0          0
1.5       1          1          0          0
2          1          2          2          1
2.5       1          0          1          2

Which function is appropriate here?
Cheers
Niels

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to