I try to automate my programming as much as possible and one challenge I've come up against recently is in trying to name new variables according to the value labels of existing variables.
For example:
Code:
sysuse sandstone tab type, gen(type_name)
type_measured
type_estimated
type_interpolated
Any advice greatly appreciated.
0 Response to extract variable labels for new variable names
Post a Comment