ts_samples | R Documentation |
Extract names and times of individuals of interest in the current tree sequence (either all sampled individuals or those that the user simplified to)
ts_samples(ts)
ts |
Tree sequence object of the class |
Table of individuals scheduled for sampling across space and time
init_env()
# load an example model with an already simulated tree sequence
slendr_ts <- system.file("extdata/models/introgression_slim.trees", package = "slendr")
model <- read_model(path = system.file("extdata/models/introgression", package = "slendr"))
# load the tree-sequence object from disk
ts <- ts_load(slendr_ts, model)
# extract the table of individuals scheduled for simulation and sampling
ts_samples(ts)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.