Dear list,

Let's say I have setup the following list:
a = c(2, 3, 5) 
b = c("aa", "bb", "cc") 
c = c(TRUE, FALSE, TRUE) 

x = list(a, b, c)

I want to access the first second dimension element of each first dimension 
element so that the result is something like:
(2, "aa", TRUE)

In my real life problem the list is about 350 elements in the first dimension 
so the solution must handle that.

Sincerely
Knut Hansen

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.

Reply via email to