[R] values of list of variable names

Christian chri@ti@n @ending from echoffm@nn@ch
Fri Jun 1 16:25:01 CEST 2018


I have searched the documentations of eval, substitute, expression, and 
I cannot make work something like the values of a list of variable names:

lis <- ls(pattern="pr") # all variables with names containing 'pr'

What is the mantra giving me the _values_ of the variables whose names 
are  contained in 'lis'. eval(parse(ls(pattern="pr"))) will not do but 
returning TRUE.

Christian Hoffmann
Rigiblickstrasse 15b
CH-8915 Hausen am Albis
Telefon +41-(0)44-7640853

More information about the R-help mailing list