Re: [R] how to fast extract values from different list elements

2010-02-26 Thread kMan
extract values from different list elements hi, I have a list L having more than 14000 Elements, each of these contains an array of about length 1200. > L[[1]][26:30] # e.g. print 5 entries of first element of L [1] 0.000 6.7982652 114.4737184 89.7328239 3.2001664 Furthermore I get

Re: [R] how to fast extract values from different list elements

2010-02-25 Thread Tom Short
On Thu, Feb 25, 2010 at 4:10 AM, Heym, Peter-Paul wrote: > this works fine but it is very slow (since A and B can be very large and I > have to repeat this about 5000 times). I would like to make this faster using > e.g. apply or lapply but I didn't get it work using these methods. Does > anybody

[R] how to fast extract values from different list elements

2010-02-25 Thread Heym, Peter-Paul
hi, I have a list L having more than 14000 Elements, each of these contains an array of about length 1200. > L[[1]][26:30] # e.g. print 5 entries of first element of L [1] 0.000 6.7982652 114.4737184 89.7328239 3.2001664 Furthermore I get two arrays A and B of same length as input. A