[R] extracting the i-th row of a matrix in a list of lists

2012-03-09 Thread Benilton Carvalho
Hi, what is the proper of of passing a missing value so I can extract the entire i-th row of a matrix (in a list of lists) without pre-computing the number of cols? For example, if I know that the matrices have 2 columns, I can do the following: set.seed(1) x0 - lapply(1:10, function(i)

Re: [R] extracting the i-th row of a matrix in a list of lists

2012-03-09 Thread cberry
Benilton Carvalho beniltoncarva...@gmail.com writes: Hi, what is the proper of of passing a missing value so I can extract the entire i-th row of a matrix (in a list of lists) without pre-computing the number of cols? For example, if I know that the matrices have 2 columns, I can do the

Re: [R] extracting the i-th row of a matrix in a list of lists

2012-03-09 Thread Benilton Carvalho
Hi Chuck, thank you *very* much! That really helped! b On 9 March 2012 17:15, cbe...@tajo.ucsd.edu wrote: Benilton Carvalho beniltoncarva...@gmail.com writes: Hi, what is the proper of of passing a missing value so I can extract the entire i-th row of a matrix (in a list of lists) without