Hi stata users,
I have the following dataset and would like to split the variable Col1 into 8 variables. I have tried without any success. I am not sure how to manipulate when the variable name is on the second row. Anyone who could assist me in doing this ?
input strL Col1 str12 Col2
`"LOPNR" "PERIOD" "SKAT" "AVORS" "INSKRIVNINGSPERIOD" "FUNKHINDER" "FUNKHINDER2" "FUNKHINDER3"' ""
"168388 2015-06 39 8 42 61 " ""
"88124 2015-06 70 7 42 " ""
"195489 2015-06 11 6 " ""
"159940 2015-06 71 10 " ""
end
[/CODE]
Thanks !
Best,
Tharshini
I have the following dataset and would like to split the variable Col1 into 8 variables. I have tried without any success. I am not sure how to manipulate when the variable name is on the second row. Anyone who could assist me in doing this ?
input strL Col1 str12 Col2
`"LOPNR" "PERIOD" "SKAT" "AVORS" "INSKRIVNINGSPERIOD" "FUNKHINDER" "FUNKHINDER2" "FUNKHINDER3"' ""
"168388 2015-06 39 8 42 61 " ""
"88124 2015-06 70 7 42 " ""
"195489 2015-06 11 6 " ""
"159940 2015-06 71 10 " ""
end
[/CODE]
Thanks !
Best,
Tharshini
Comment