[18923] in s-news-athena

home help back first fref pref prev next nref lref last post

Re: [S] Frequency counts

daemon@ATHENA.MIT.EDU (Steve Bousquin)
Thu Aug 12 09:06:20 1999

Message-Id: <37B2C40A.DE7240EF@sfwmd.gov>
Date: Thu, 12 Aug 1999 08:54:34 -0400
From: "Steve Bousquin" <sbousqu@sfwmd.gov>
Reply-To: sbousqu@sfwmd.gov
Mime-Version: 1.0
To: "s-news@wubios.wustl.edu" <s-news@wubios.wustl.edu>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


Thanks for the large response.  Several people suggested
that this could not be done without a custom function, and a
number of people sent interesting functions.  I can
summarize if anyone is interested.  However, 


table(matrix(data))


worked fine for this purpose.




Steve Bousquin wrote:
> 
> Is there an S-Plus function that will count the number of
> unique values or text items in a column, and give the number
> of                 occurrances of each alongside the value
> or text ?
> 
> E.g., for a column that reads:
> 
> At
> B
> A
> A
> B
> A
> A
> C
> 
> I want output that reads:
> 
> A     3
> At    1
> B     2
> C     1
> 
> Thanks!
> 
> =======================================
> Steve Bousquin
> 
> Kissimmee River Restoration Division
> South Florida Water Management District
> West Palm Beach, FL
> 
> sbousqu@sfwmd.gov
> =======================================
> -----------------------------------------------------------------------
> 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

-- 
=======================================
Steve Bousquin

Kissimmee River Restoration Division
South Florida Water Management District
West Palm Beach, FL

sbousqu@sfwmd.gov
=======================================
-----------------------------------------------------------------------
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

home help back first fref pref prev next nref lref last post