Ok, so I\'m running some loops to process data stored in list objects. Ever mindful of the infamous fortune admonishment not to use eval(parse(mystring))
fortune
eval(parse(mystring))
Using get and [[:
get
[[
bar <- list(foo = list(fast = 1:5, slow = 6:10), oof = list(6:10, 1:5)) rab <- 'bar' get(rab)[['oof']] # [[1]] # [1] 6 7 8 9 10 # # [[2]] # [1] 1 2 3 4 5