Re: Deleting specific value labels
Posted by emma78 on Jun 18, 2015; 1:46pm
URL: http://spssx-discussion.165.s1.nabble.com/Deleting-specific-value-labels-tp5729847p5729862.html
hm, that doesn't work
I try this but nothing happened;-)
begin program.
import spss, spssaux
vardict = spssaux.VariableDict()
for v in vardict:
vallbls = v.ValueLabels
for k, vl in vallbls.items():
if vl == "<none>":
del(vallbls[k])
v.ValueLabels = vallbls
break
end program.
in the value label viewer it looks like
1 "fdsf"
2 ""