Skip to contents

Extract names of individuals of interest in a tree sequence produced by a slendr model

Usage

ts_names(x, split = FALSE, schedule = NULL)

Arguments

x

Either a tree sequence object of the class slendr_ts, or a compiled slendr model of the class slendr_model

split

Should sample names in the tree sequence be split by population? If set to TRUE, a list of character vectors will be returned, one vector for each population.

schedule

If samples from a model (not yet a tree sequence) are to be obtained, this argument can be used to restrict the set of recorded individuals

Value

A vector of character sample names. If split is specified, a list of such vectors is returned, one element of the list per population or sampling time.