Access variable value where the name of variable is stored in a string

You provided the answer in your question. Try get.

> get(x)
[1] 1 2 3

Leave a Comment