Created
April 13, 2012 15:45
-
-
Save gweissman/2377829 to your computer and use it in GitHub Desktop.
Sample code using quote and eval in R
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# write some code and sit on it | |
mycode <- quote(1 + 2 +3) | |
# some time later, at your convenience, evaluate the code | |
eval(mycode) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment