Skip to content

Instantly share code, notes, and snippets.

View mabarbour's full-sized avatar

Matt Barbour mabarbour

View GitHub Profile
@mabarbour
mabarbour / ch2
Created November 5, 2012 20:43
Code for recreating figures in Chapter 2
######### These are my attempts to incorporate McCann's models into R to help me interpret these food web models ######################
### Section 2.2.5
# parameters and state variables for the R-M model
r <- 1.0 # per capita rate of increase in resource
K <- 2.0
e <- 0.5
Ro <- 0.5
m <- 0.5
a <- 1.6