Re: [R] iterative extracting data from a list without keys

2013-03-07 Thread Bert Gunter
Re-read ?"[" (always better to read the docs before archives...) and note in particular: "[[ can be applied recursively to lists, so that if the single index i is a vector of length p, alist[[i]] is equivalent to alist[[i1]]...[[ip]] providing all but the final indexing results in a list." I agr

Re: [R] iterative extracting data from a list without keys

2013-03-07 Thread arun
Thursday, March 7, 2013 3:14 PM Subject: [R] iterative extracting data from a list without keys Dear R Users. This seems like a simple task, but I'm stuck. I have a list with 3 elements: (2 vectors and 1 matrix).  I wish to extract each of these data elements using index subscripts and mult

[R] iterative extracting data from a list without keys

2013-03-07 Thread Jeff Hollenbeck
Dear R Users. This seems like a simple task, but I'm stuck. I have a list with 3 elements: (2 vectors and 1 matrix). I wish to extract each of these data elements using index subscripts and multiply them with a vector multiplier. What I have: > betas [1] 0.01 0.01 0.01 > LData[1] $int [1]