| Date: | Fri, 30 May 1997 16:23:59 +0000 |
| Reply-To: | forbes@cip.org.ec |
| Sender: | "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU> |
|
| From: | Greg Forbes <forbes@CIP.ORG.EC> |
| Subject: | updating values across variables |
| Content-Type: | text/plain; charset=US-ASCII |
We would like to update variables on a daily basis as indicated
below. This is part of plant disease simulator and there are
transfer functions that modify values as they pass from one age to
another, but for now we would just like to get the basic idea of how
this can be done in a data step.
Day age1 age2 age3 age4 age5 age6
1 1 2 0 0 0 0
2 0 1 2 0 0 0
3 0 0 1 2 0 0
4 0 0 0 1 2 0
etc.
Thank you,
Greg Forbes
Greg Forbes
International Potato Center (CIP)
P.O. 17-21-1977, Quito, Ecuador
Tel. +593-2-690362; Fax +593-2-692604
|