[R] second element of a list

Gregory Ryslik rsaber at comcast.net
Fri Oct 1 01:34:50 CEST 2010


Hi,

I have a list of of n elements (where n is unknown beforehand). Each element of the list has two subelements. The first is a matrix, the second is a number. I want to make a list of just the matrices.

I want to do something like mylists[[ ,2]] but that obviously doesn't work. Is there a simple way to get around this?

Thanks!


More information about the R-help mailing list