In Stata, variable name can us local function define.
such as local var="longtime"
`var'_2010`
is actually longtime_2010
in Stata
Can R have the same function as local in dataframe.
I have repeat my code in the same step in several dataframes.
But I have to change their names. How can I use the same as Stata. such as
I have var1-10
var1<-left_join(var1_tot,var1_exp)
.....(repeat 10 times)
var10<-left_join(var10_tot,var10_exp)