SyntaxFix
Write A Post
Hire A Developer
Questions
assign is what you are looking for.
assign("x", 5) x [1] 5
but buyer beware.
See R FAQ 7.21 http://cran.r-project.org/doc/FAQ/R-FAQ.html#How-can-I-turn-a-string-into-a-variable_003f