[R] counting the occurrences of vectors

From: Ravi Varadhan <rvaradha_at_jhsph.edu>
Date: Sun 04 Jul 2004 - 00:31:52 EST


I have two matrices, A and B, where A is n x k, and B is m x k, where n >> m >> k. Is there a computationally fast way to count the number of times each row (a k-vector) of B occurs in A? Thanks for any suggestions.  


        [[alternative HTML version deleted]]

R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sun Jul 04 00:39:17 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 09:26:25 EST