Skip to content
Prev 319215 / 398506 Next

take two columns from a set of lists

You could also do:
simplify2array(x.list)[2,]
#[1] 0.1 3.0
A.K.



----- Original Message -----
From: Jorge I Velez <jorgeivanvelez at gmail.com>
To: ishi soichi <soichi777 at gmail.com>
Cc: r-help <r-help at r-project.org>
Sent: Monday, March 11, 2013 6:57 AM
Subject: Re: [R] take two columns from a set of lists

Is the following that you are looking for?

unlist(lapply(x.list, "[", 2))

HTH,
Jorge.-
On Mon, Mar 11, 2013 at 9:52 PM, ishi soichi <> wrote:

            
??? [[alternative HTML version deleted]]

______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.