[R] how to index a list with a string?

Ning Ma pningma at gmail.com
Thu Aug 27 05:35:21 CEST 2009


Hi, everybody. I have a list obj L, sth like

$`aaa`
[1] "5753"

if the string 'aaa' is a returned value of a function foo(). what is
the right syntax form of L$foo()

I'm new to R, thanks in advance.




More information about the R-help mailing list