View source: R/utilities-simulation.R
exportIndividualSimulations | R Documentation |
individualIds
. Each pkml file will contain the original simulation updated with parameters of the corresponding individual.Export simulation PKMLs for given individualIds
. Each pkml file will contain the original simulation updated with parameters of the corresponding individual.
exportIndividualSimulations(
population,
individualIds,
outputFolder,
simulation
)
population |
A population object typically loaded with |
individualIds |
Ids of individual (single value or array) to export |
outputFolder |
Folder where the individual simulations will be exported. File format will be |
simulation |
Simulation uses to generate PKML files |
An array containing the path of all exported simulations.
simPath <- system.file("extdata", "simple.pkml", package = "ospsuite")
sim <- loadSimulation(simPath)
popPath <- system.file("extdata", "simple_pop.csv", package = "ospsuite")
population <- loadPopulation(popPath)
exportIndividualSimulations(population, c(1, 2), tempdir(), sim)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.