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 Population size after the change How to change the population size (options are "step" or "exponential") Time of the population size change 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.