[S] unique() for matrices?

Steve Edland (edland@u.washington.edu)
Tue, 17 Feb 1998 08:51:11 -0800 (PST)

I need an function like unique(), but for matrices. That is, you pass it
a matrix X and it returns a matrix of the unique rows of X. Ideally the
function would also return a vector with the number of duplicates
represented by each row of the returned matrix.

Does anybody have an efficient algorithm for this?

Thanks for any help,
Steve Edland
Alzhiemer's Disease Research Center
University of Washington, 354691
Seattle, WA 98195
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news