Re: [R] Memoize and vectorize a custom function

2012-04-27 Thread Henrik Bengtsson
On Thu, Apr 26, 2012 at 3:21 PM, Kamil Slowikowski wrote: > My goal is simple: calcuate GC content of each sequence in a list of > nucleotide > sequences. I have figured out how to vectorize, but all my attempts at > memoization failed. > > Can you show me how to properly memoize my function? > >

Re: [R] Memoize and vectorize a custom function

2012-04-26 Thread Martin Morgan
On 04/26/2012 03:21 PM, Kamil Slowikowski wrote: My goal is simple: calcuate GC content of each sequence in a list of nucleotide sequences. I have figured out how to vectorize, but all my attempts at memoization failed. Can you show me how to properly memoize my function? There is a StackOverfl

[R] Memoize and vectorize a custom function

2012-04-26 Thread Kamil Slowikowski
My goal is simple: calcuate GC content of each sequence in a list of nucleotide sequences. I have figured out how to vectorize, but all my attempts at memoization failed. Can you show me how to properly memoize my function? There is a StackOverflow post on the subject of memoization, but it does