Colleagues,
I'm trying to follow the advice on the Statalist concerning the automatic wrapping of long labels. I'm trying to modify the code from the post to suit my needs but I'm getting the invalid syntax error. It is not entirely obvious to me where is the error.
I'm trying to follow the advice on the Statalist concerning the automatic wrapping of long labels. I'm trying to modify the code from the post to suit my needs but I'm getting the invalid syntax error. It is not entirely obvious to me where is the error.
Code:
// Fix the long labels local relabels "" levelsof ifcrglady, local(groups) foreach g in `groups' { local label : label ifcrglady `g' local len : length label if `len' > 20 { local p1 : piece 1 20 "`label'", nobreak local p2 : piece 2 20 "`label'", nobreak local relabels "`relabels' `g' `""`p1'" "`p2'"'" '" } }
Comment