Re: [R] norm package prelim.norm

From: Peter Dalgaard <>
Date: Thu 02 Feb 2006 - 02:05:04 EST

Elizabeth Lawson <> writes:

> Hey eveyone! I hope someone can help wiht this question. I have a matirux of all zeros and ones and I would like to indentify all unique patterns in the rows andthe number of times the pattern occurs. I changed all zeros to NA tried to use prelim.norm to identify all patterns of missing data in the rows. I got the message
> Warning message:
> NAs introduced by coercion
> Any ideas of how to get this to work? Or are there any way to indentify all the unique patterns in a huge matrix? ( 10000 x 71)
> Thanks for any suggestions!!

unique() has a matrix method.

For tabulation, you might consider a modification of unique.matrix. Or maybe aggregate() or by() will do the trick.

   O__  ---- Peter Dalgaard             ุster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (                  FAX: (+45) 35327907

______________________________________________ mailing list
PLEASE do read the posting guide!
Received on Thu Feb 02 02:14:49 2006

This archive was generated by hypermail 2.1.8 : Thu 02 Feb 2006 - 08:29:25 EST