[R] Population Decay in R

2008-12-15 Thread jimdare
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 5

Re: [R] Population Decay in R

2008-12-15 Thread David Katz
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 populati