Re: [R] Population growthrate with Euler-Lotka

2014-06-30 Thread Mark Christjani
-project.org" Betreff: Re: Aw: Re: [R] Population growthrate with Euler-Lotka Hmm. Try setting extendInt="yes" in the call to uniroot. You should also look at the help page for uniroot. help(uniroot) May give you a clue. It's difficult for me to debug code on

Re: [R] Population growthrate with Euler-Lotka

2014-06-30 Thread Mark Christjani
4 um 12:41 Uhr Von: "Simon Blomberg" An: "Mark Christjani" Cc: "r-help@r-project.org" Betreff: Re: [R] Population growthrate with Euler-Lotka Your script is failing at the first hurdle because you data are not being imported properly. You should include

Re: [R] Population growthrate with Euler-Lotka

2014-06-30 Thread Simon Blomberg
terval = r.range, tol = > 1e-08) : > f() values at end points not of opposite sign"-matter? > > Kind regards, > Mark > > > > Gesendet: Montag, 30. Juni 2014 um 12:41 Uhr > Von: "Simon Blomberg" mailto:s.blombe...@uq.edu.au>> > An: "Mark Christ

Re: [R] Population growthrate with Euler-Lotka

2014-06-30 Thread David Stevens
Mark - good on you for jumping into R with both feet. In addition to Simon's advice, the error message you are getting means that the two endpoints (r.range in your case) do not give function values that are of the opposite sign and so either the function has no roots on the interval or has an

Re: [R] Population growthrate with Euler-Lotka

2014-06-30 Thread Simon Blomberg
t; mailto:s.blombe...@uq.edu.au>> An: "Mark Christjani" mailto:m_christj...@gmx.de>> Cc: "r-help@r-project.org<mailto:r-help@r-project.org>" mailto:r-help@r-project.org>> Betreff: Re: [R] Population growthrate with Euler-Lotka Your script is failing at th

Re: [R] Population growthrate with Euler-Lotka

2014-06-30 Thread Simon Blomberg
Your script is failing at the first hurdle because you data are not being imported properly. You should include header=TRUE. sep=";" In the call to read.table. Cheers. Simon. Sent from my iPhone Sent from my iPhone > On 30 Jun 2014, at 7:10 pm, "Mark Christjani" wrote: > > > Hi everybod

[R] Population growthrate with Euler-Lotka

2014-06-30 Thread Mark Christjani
Hi everybody, I`m Mark and I do my PhD in biology. I try using R to calculate a population growth rate of animals grown on different types of food. Our workgroup has a R-skript to do so, but sadly nobody, who knows how this works. I`ve never used R before, but got some stuff figure