SyntaxFix
Write A Post
Hire A Developer
Questions
If you really do want to use wildcards to identify specific variables, then you can use a combination of ls() and grep() as follows:
ls()
grep()
l = ls() vars.with.result <- l[grep("result", l)]
l = ls()
vars.with.result <- l[grep("result", l)]