Requirements

You need the free software R : go to R for Windows, R for Mac or R for Linux to install it. We also highly recommend the integrated development environment RStudio.

Code

Create a variable from a string
assign("new_variable",5)
new_variable
## [1] 5
Create a string from a variable
deparse(substitute(new_variable))
## [1] "new_variable"