I wanna label each variable with the text in the first line of said variable.
My data looks like this
My current code seems not to work.
foreach var of varlist * {
label variable `var' ``var'[1]'
}
What would I do to fix this? I do not get any error messages.
My data looks like this
Varname1 | Varname2 |
LabelVar1 | LabelVar2 |
Value1Var1 | Value1Var2 |
Value2Var1... | Value2Var2... |
My current code seems not to work.
foreach var of varlist * {
label variable `var' ``var'[1]'
}
What would I do to fix this? I do not get any error messages.
Comment