I want to create a new variable using assign variable value in r just like a macro using in SAS.
For example:-
ID<-"RC090015"
my_ID_code<-xyz
It should be written as my_RC090015_code<-xyz.
so my requirement is i want to use ID variable for creating new variable for code generalization purpose. Means suppose i just change the ID variable value so it should be change in all further variable where i used ID variable.
So please help me is there any function in r to include that ID variable for creating new variable including ID value.
Thanks in Advance.
