Date: Tue, 22 Aug 2006 16:55:00 GMT
Reply-To: John Smith <math342@HOTMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: John Smith <math342@HOTMAIL.COM>
Subject: Help with Arrays please
I'm relatively new to sas, but here's what I'm trying to do:
Among my variables, is a dichotomous variable (called 'status') of 1's and
0's
which define whether a tree is alive or dead. The orchard where the trees
reside is a perfect grid and the tree's position can extracted from the row
and
column variables.
i.e. id row col status etc
B7 7 B 1
I want to convert the 'status' variable into a two-dimensional array of 1's
and
0's, and then create a new variable containing the number of dead trees
around
each tree. I 'm just having trouble with the array part and can figure out
the
searching part of the algorythm. Thank you in advance for any help anyone
can provide.
Claude
|