Re: [R] intigrate function and absolute error

2009-11-01 Thread Ravi Varadhan
You just need to extract the list component named "value": I1$value Ravi. Ravi Varadhan, Ph.D. Assistant Professor, Division of Geriatric Medicine and Gerontology School of Medicine Johns Hopkins University Ph. (410) 502-2619

Re: [R] intigrate function and absolute error

2009-11-01 Thread Jorge Ivan Velez
Hi Laila, Here is a suggestion: res <- integrate(dnorm, -1.96, 1.96) res # 0.9500042 with absolute error < 1.0e-11 res[[1]] # [1] 0.9500042 res$value # [1] 0.9500042 HTH, Jorge On Sun, Nov 1, 2009 at 3:02 PM, Laila Alkhalfan <> wrote: > Hi > Can we get the result of an intigration without