Population dynamics in the style of Yodzis and Innes (1992) in R