s-news
[Top] [All Lists]

count occurrences

To: s-news@lists.biostat.wustl.edu
Subject: count occurrences
From: Ita.Cirovic-Donev@hypo-alpe-adria.com
Date: Mon, 20 Nov 2006 15:10:17 +0100
Importance: Normal
Keywords:
Sensitivity:



Sorry, I have an addition to previous email. I also have a vector of zeros
and ones of equal length as the first vector. The counting should be done
in the following way:

      count each A where it is equal to zero
      count each A where it is equal to one
      and so on for the rest of the qualitative marks.

thanks



--------

Hi,

I have a vector with qualitative values such as A,B,C,D,E,F,G. The length
of the column is 1100. I would like to go through the vector an count the
occurrences of A, B,C and so on and record the values in the new vector. Is
there a function that does a counting in this way that I can insert into
the for loop. Thanks.





Razmjena informacija s HYPO ALPE-ADRIA-BANK d.d. putem e-maila je bez
jamstava. Zakljucivanje pravnih poslova putem ovog medija nije dozvoljeno.
Ovaj e-mail moze sadrzavati povjerljive i/ili povlastene informacije. Ako
ste ga primili greskom, molimo Vas da nas o tome odmah obavijestite tako
sto cete na njega odgovoriti, a zatim vas molimo da ga izbrisete iz vaseg
sustava. Ovime vas obavjestavamo da je svako otkrivanje, kopiranje,
distribuiranje ili poduzimanje bilo kakvih aktivnosti u vezi s njegovim
sadrzajem strogo zabranjeno i moze biti nezakonito.



The exchange of messages with HYPO ALPE-ADRIA-BANK d.d. via e-mail is not
binding. Declarations regarding legal transactions must not be exchanged
via this medium. The information contained in this e-mail message is
confidential and intended exclusively for the addressee. Persons receiving
this e-mail message who are not the named addressee (or his/her co-workers,
or persons authorized to take delivery) must not use, forward or reproduce
its  contents. If you have received this e-mail message by mistake, please
contact us immediately and delete this email message beyond retrieval.


<Prev in Thread] Current Thread [Next in Thread>