Re: [R] Error in integrate

From: Ray Brownrigg <ray_at_mcs.vuw.ac.nz>
Date: Fri 07 Oct 2005 - 12:37:17 EST


Murray Jorgensen <maj@stats.waikato.ac.nz> wrote:

> I'm using R 2.0.1 under Windows XP. I get the following message when I
> run the code listed below. I don't seem to have any problems using the
> function "slice" outside "integrate".
>
> Error in integrate(slice, 0, Inf, , , , , , , a, b) * delta :
> non-numeric argument to binary operator
>
RTFM! Integrate returns:
Value:

     A list of class '"integrate"' with components
     :
     :

You need:
A[j] <- integrate(slice,0,Inf,,,,,,,a,b)$value*delta

Ray



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Oct 07 12:41:15 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 18:27:07 EST