I am importing the attached excel file, as follows:
By default a column header like "pct year-round single track" turns into the variable name pctyearroundsingletrack (with no spaces), which is not very readable.
I would prefer to replaces the spaces with underscores, like this: pct_year_round_single_track
Is there a way for Stata to do that?
Thanks!
Paul
Code:
import excel "Year-round trends\SASS NTPS trends\National trends, values.xlsx", sheet("Nationwide percentages") firstrow clear
I would prefer to replaces the spaces with underscores, like this: pct_year_round_single_track
Is there a way for Stata to do that?
Thanks!
Paul
Comment