s-news
[Top] [All Lists]

Re: Data manipulation

To: "'Scott Rollins'" <rollins8@msu.edu>, s-news@lists.biostat.wustl.edu
Subject: Re: Data manipulation
From: "Gunter, Bert" <bert_gunter@merck.com>
Date: Wed, 19 Jun 2002 21:05:48 -0400
1. Read the Help manuals. Why is this not the first place that you look?
2. Eventually, if you need to use the software a lot and want to do it well,
get a copy of S-PROGRAMMING by Venables and Ripley (published by Springer)
and spend time with it.

S is a powerful and extremely flexible language for data analysis and
visualization -- including extensive and remarkably efficient facilities for
data manipulation. I do not think you will regret honest effort spent to
learn the system.

Bert Gunter
Biometrics Research RY 70-38
Merck & Company
P.O. Box 2000
Rahway, NJ 07065-0900
Phone: (732) 594-7765
mailto: bert_gunter@merck.com

"The business of the statistician is to catalyze the scientific learning
process."      -- George E.P. Box


-----Original Message-----
From: Scott Rollins [mailto:rollins8@msu.edu]
Sent: Wednesday, June 19, 2002 10:42 AM
To: s-news@lists.biostat.wustl.edu
Subject: [S] Data manipulation


I'm in need of data manipulation help.  This is the first time I've
tried to use S-Plus (version 4.5 running in Windows ME) for cluster
analysis.  I have a dataframe containing 3 columns: site, species, ra
(relative abundance).  I'd like to cluster groups of sites based on
their species composition, but I'm having trouble converting the data
into the proper matrix format.  Not all sites contain the same species,
nor equal numbers of species.  That is, the ra vector contains no zero
values, but the site by species matrix will contain many zeros.  I'm
convinced that I can do this in S-Plus and that I don't have to export
the data to MS Access and run a crosstab query to create the matrix!
Can anyone help me?

Thanks,
Scott

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Scott L. Rollins
Research Assistant
Algal Ecology Lab
Department of Zoology
203 Natural Science Building
Michigan State University
East Lansing, Michigan 48824-1115
Phone: 517-432-8084
FAX: 517-432-2789
e-mail: rollins8@msu.edu


--------------------------------------------------------------------
This message was distributed by s-news@lists.biostat.wustl.edu.  To
unsubscribe send e-mail to s-news-request@lists.biostat.wustl.edu with
the BODY of the message:  unsubscribe s-news

------------------------------------------------------------------------------
Notice: This e-mail message, together with any attachments, contains 
information of Merck & Co., Inc. (Whitehouse Station, New Jersey, USA) that may 
be confidential, proprietary copyrighted and/or legally privileged, and is 
intended solely for the use of the individual or entity named on this message. 
If you are not the intended recipient, and have received this message in error, 
please immediately return this by e-mail and then delete it.

==============================================================================


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