LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (August 2006, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: sas-l@uga.edu

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


Back to: Top of message | Previous page | Main SAS-L page