Re: [R] Improve a browse through list items - Transform a loop to apply-able function.

2011-12-16 Thread Robin Cura
Thanks to all of you for those answers, it now works and it's way faster than it used to be ;) Especially, converting my list of matrix to a 3-dimensionnal array simplifies a lot the statistics I have to run on my data :) Thanks again, Robin 2011/12/14 Patrizio Frederic

Re: [R] Improve a browse through list items - Transform a loop to apply-able function.

2011-12-14 Thread Patrizio Frederic
Hi robin, I'm not sure is what you need, but that's an esthetically nice solution (one single line without any loop :) ) matrix(apply(log(cbind(as.numeric(a),as.numeric(b),as.numeric(c),as.numeric(d))),1,sd),3) hope it could help, PF On Mon, Dec 12, 2011 at 5:15 PM, Robin Cura

Re: [R] Improve a browse through list items - Transform a loop to apply-able function.

2011-12-13 Thread Jean V Adams
Robin Cura wrote on 12/12/2011 10:15:32 AM: Hello, I'm currently trying to convert a slow and ugly script I made, so that it's faster and can be computed on a computer grid with the multicore package. My problem is that I don't see how to turn some loops into an apply-able function.

Re: [R] Improve a browse through list items - Transform a loop to apply-able function.

2011-12-13 Thread Klint Gore
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Robin Cura Sent: Tuesday December 13, 2011 3:16 AM I'm currently trying to convert a slow and ugly script I made, so that it's faster and can be computed on a computer grid

[R] Improve a browse through list items - Transform a loop to apply-able function.

2011-12-12 Thread Robin Cura
Hello, I'm currently trying to convert a slow and ugly script I made, so that it's faster and can be computed on a computer grid with the multicore package. My problem is that I don't see how to turn some loops into an apply-able function. Here's an example of my loops : I got a list of