Skip to content
Prev 285263 / 398503 Next

Selecting elements from all items in a list

On Feb 14, 2012, at 8:44 AM, geotheory wrote:

            
Any such extraction would of necessity have a loop-like basis, but  
perhaps you meant without an explicit for-loop?

 > sapply(l, "[[", 2)
[1] "A2" "B2" "B2"