[19120] in s-news-athena
[S] Question on data manipulation
daemon@ATHENA.MIT.EDU (Abd Rahman Kassim)
Mon Sep 6 21:37:29 1999
Message-Id: <01BEF913.54643220.rahmank@frim.gov.my>
From: Abd Rahman Kassim <rahmank@frim.gov.my>
To: "s-news@wubios.wustl.edu" <s-news@wubios.wustl.edu>
Date: Tue, 7 Sep 1999 09:28:21 +0800
Dear S-plus user,
Sorry, I have to send another similar question because I have'nt received
any response yet. I guess my earlier question is not clear and confusing.
My question is on how to write S-plus code to calculate the value of
"relative position" for a particular subject of that variable. For
example,
Data file: tree.dat
Variables : Plot : Size of the plot
DBH : Diameter of the subject tree
DBHL: Total diameter of trees for trees larger than the
subject tree
Plot DBH DBHL
------ ------------ ---------
a 10 30
a 15 0
a 13 15
a 12 28
b 5 30
b 10 13
b 7 23
b 13 0
In this example, my question is how to write S-plus code, to calculate the
value of DBHL.
I am using S-plus for Windows Version 4.5 Rel. 2.
The solution should be simple, I suppposed. But I don't have a clue. Any
help would be much appreciated.
Abd Rahman
Hill Forest Silviculture
FRIM
-----------------------------------------------------------------------
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