[R] norm package prelim.norm

Peter Dalgaard p.dalgaard at biostat.ku.dk
Wed Feb 1 16:05:04 CET 2006


Elizabeth Lawson <lizzylaws at yahoo.com> 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
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907




More information about the R-help mailing list