Re: [R] Extracting from a list XXXX

2012-01-03 Thread R. Michael Weylandt
I imagine this is about as brief as one can be. as.character(sapply(XXX, `[`, 1)) Michael On Tue, Jan 3, 2012 at 9:44 PM, Dan Abner wrote: > Hello everyone, > > Can someone please suggest the most succinct method for extracting the > first value from each component of a list and saving the resu

[R] Extracting from a list XXXX

2012-01-03 Thread Dan Abner
Hello everyone, Can someone please suggest the most succinct method for extracting the first value from each component of a list and saving the resulting vector as a character vector? Thank you, Dan [[alternative HTML version deleted]] __ R-h