Skip to content
Prev 221068 / 398500 Next

Dynamically build variable names

have a list like this one:
use them on an R list.
I found a solution. After three days of banging my head, it just took me three
minutes after I posted. 

mean(unclass(eval(parse(text=paste('d$', 'V1_1', sep='')))))

I have no idea if this is considered 'good R coding'. It works, but I would
appreciate comments never the less...