[R] For Loops please help!!

Dan D ddalthorp at usgs.gov
Sat Sep 5 17:21:29 CEST 2015

The code has an error so it won't run as written. 

Instead of:
infectrate[n]= (400)(1.1)^(n); 

infectrate[n]= 400*1.1^n;

What I get after making this change looks right.

View this message in context: http://r.789695.n4.nabble.com/For-Loops-please-help-tp4711882p4711884.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list