s-news
[Top] [All Lists]

Data manipulation

To: <s-news@lists.biostat.wustl.edu>
Subject: Data manipulation
From: "Scott Rollins" <rollins8@msu.edu>
Date: Wed, 19 Jun 2002 10:42:26 -0400
Importance: Normal
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



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