A Practical Guide to Ecological Modelling: Using R as a Simulation Platform