Hi
I have a raw data which has 20 observations and 10 variables. These 20 observations actually contain the same id number, say repeats of 5, that is each id number occurs 5 times. Of the 10 variables only certain variables are present for each observation.
Is it possible for me rollup the variables into 1 id number and basically make it contain in 4 observations with all the variables rolled up.
example:
x1 x2 x3 x4 x5 x6 x7 x8..
1 aaaa h g
2 bbbb t i
3 cccc j h o
4 aaaa w r e
5 bbbb u l z
6 aaaa r a x
7 .
8 .
9 .
10 .( etc)
11 .
. .
. .
.
.
.
Can some one tell me how to make this file appear only like
aaaa w h r r e a x
bbbb
cccc
dddd
eeee
will i get this using array?
Thanks,
Raj
I have a raw data which has 20 observations and 10 variables. These 20 observations actually contain the same id number, say repeats of 5, that is each id number occurs 5 times. Of the 10 variables only certain variables are present for each observation.
Is it possible for me rollup the variables into 1 id number and basically make it contain in 4 observations with all the variables rolled up.
example:
x1 x2 x3 x4 x5 x6 x7 x8..
1 aaaa h g
2 bbbb t i
3 cccc j h o
4 aaaa w r e
5 bbbb u l z
6 aaaa r a x
7 .
8 .
9 .
10 .( etc)
11 .
. .
. .
.
.
.
Can some one tell me how to make this file appear only like
aaaa w h r r e a x
bbbb
cccc
dddd
eeee
will i get this using array?
Thanks,
Raj