Resizes the population starting from the current value of N individuals to the specified value

resize(pop, N, how, time, end = NULL)

Arguments

pop

Object of the class slendr_pop

N

Population size after the change

how

How to change the population size (options are "step" or "exponential")

time

Time of the population size change

end

End of the population size change period (used for exponential change events)

Details

In the case of exponential size change, if the final N is larger than the current size, the population will be exponentially growing over the specified time period until it reaches N individuals. If N is smaller, the population will shrink exponentially.