Re: [R] Dynamic Programming in R

2020-06-08 Thread Bert Gunter
Search before posting here! "dynamic programming R" brought up several relevant hits. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Mon, Jun 8, 2020 at 5:54

Re: [R] dynamic programming

2011-05-29 Thread Patrick Breheny
On 05/29/2011 06:07 AM, garciap wrote: V<-fitness*(c+dive*pfood, t+1) What are you trying to do in this line? Multiply fitness by two different things at once? The expression (1,2) Causes problems in R. If you want to combine them into a vector, you need c(1,2) Otherwise, please go int