Define sampling events at specified times for a given set of populations

sampling(model, times, ..., strict = FALSE)



Object of the class slendr_model


Integer vector of times (in model time units) at which to schedule remembering of individuals in the tree-sequence


Lists of two elements (slendr_pop population object-<number of individuals to sample), representing from which populations should how many individuals be remembered at times given by times


Should any occurence of a population not being present at a given time result in an error? Default is FALSE, meaning that invalid sampling times for any populations will be quietly ignored.


Data frame with three columns: time of sampling, population to sample from, how many individuals to sample