Message-ID: <x2ek2nyva7.fsf@viggo.kubism.ku.dk>
Date: 2006-02-01T15:05:04Z
From: Peter Dalgaard
Subject: norm package prelim.norm
In-Reply-To: <20060201144326.67982.qmail@web32108.mail.mud.yahoo.com>
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