View source: R/extract_parameters.R
extract_parameters | R Documentation |
This function extract a slendr model parameters used to compile a given model object or simulate a tree sequence
extract_parameters(data)
data |
Either an object of the class |
A list of data frames containing parameters of the model used when compiling a model object
init_env()
# load an example model and simulate a tree sequence from it
model <- read_model(path = system.file("extdata/models/introgression", package = "slendr"))
ts <- msprime(model, sequence_length = 1e5, recombination_rate = 0)
# extract model parameters from a compiled model object as a list of data frames
extract_parameters(model)
# the function can also extract parameters of a model which simulated a
# tree sequence
extract_parameters(ts)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.