Learn R Programming

scSpatialSIM (version 0.1.3.4)

ExtractParameters: Get Simulation Parameters

Description

Get Simulation Parameters

Usage

ExtractParameters(sim_object, steps = NULL)

Value

a list of S3 clas SimParams containing parameters stored in the sim_object

Arguments

sim_object

simulation object created with CreateSimulationObject

steps

which parameters to extract from the SpatSimObj

Details

This function will return any paramters that are stored in the simulation object. If no simulation steps have been run, then this will return the default parameters. The defaults are over written if new parameters are provided at each step.

Examples

Run this code

#create simulation object
sim_obj = CreateSimulationObject()
#extract default paramters for the Tissue simulation step
defs = ExtractParameters(sim_obj, "Tissue")

Run the code above in your browser using DataLab