Population Decay in R
barplot(5000*((1-.26)^(0:49)))
jimdare wrote:
Hi, I am new to R. I am trying to plot the decay of a population over time (0-50yrs). I have the initial population value (5000) and the mortality rate (0.26/yr) and I can't figure out how to apply this so I get a remaining population value each year. In excel (ignoring headings) I would put 5000 in A1, in B2 I would enter the formula A1*0.26, and then in A2 (the next years population) I would subtract B2 from A1. I would continue this process untill I had calculated the population for the 50th year. Any ideas of how to do this in R? :-/
View this message in context: http://www.nabble.com/Population-Decay-in-R-tp21024561p21025051.html Sent from the R help mailing list archive at Nabble.com.