| Date: | Thu, 9 Sep 2010 12:14:46 -0400 |
| Reply-To: | Randall Powers <powers_r@BLS.GOV> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | Randall Powers <powers_r@BLS.GOV> |
| Subject: | transposing observations to arrays |
|---|
Hello All.
I have this dataset:
obs a b c d e f g h i
1
2
3
4
5
6
7
Hence, nine variables, seven observations.
What I'd like to end up with is a dataset with one observation containing
nine arrays with the previous observation number as the array index.
Hence,7*9=63 variables:
obs a1 a2 a3 a4 a5 a6 a7 b1 b2 b3....b7.....i7
1
How do I do this?
Thanks!
|