Re: [R] Using functions that contain sums

2008-09-26 Thread Charles C. Berry
On Fri, 26 Sep 2008, Patrick M. Joyce wrote: Hello, I'm trying to perform an integration on a function that contains a sum. Similarly I'm hoping whatever acts as a fix will be good enough to aid in a 2nd case as well but I've already put in a work-around for that situation. My code example is

[R] Using functions that contain sums

2008-09-26 Thread Patrick M. Joyce
Hello, I'm trying to perform an integration on a function that contains a sum. Similarly I'm hoping whatever acts as a fix will be good enough to aid in a 2nd case as well but I've already put in a work-around for that situation. My code example is here: watermelon=c(0,1,2,3) w<-function(x){ s