Hello
I am trying to shorten the labels of the variable in my dataset. Eg:
storage display value
variable name type format label variable label
-----------------------------------------------------------------------------------------------------------------------
resp_agr_deci~n str1 %9s survey/Group1/resp_agr_decision
resp_joint_ag~c str1 %9s survey/Group1/resp_joint_agr_decision
I need to eliminate the first part of the label "survey/Group1/" from each variable label. Is it possible to do it by using substr with foreach command?
Thank You
Smriti
Related Posts with Shorten variable labels using foreach
Lag variable which ignores WeekendsHi, I am unable to find a command that will give me the lag variable but will ignore the weekends o…
For-loops are killing me!I created a postfile and now trying to display the results from that postfile. There are two variabl…
Comparing the seasonal naive method with Holt-Winters' additive seasonal exp. smoothing method using ts cross-validationHello, I am having trouble figuring out the correct commands when I try to compare the seasonal nai…
Multilevel analysis for longitudinal effectsDear Community, I am working with the European Working Conditions Survey and I would like to calcul…
MulticollinearityHi I understand the principle of multicollinearity and know ho to detect it. However, when removing…
Subscribe to:
Post Comments (Atom)
0 Response to Shorten variable labels using foreach
Post a Comment