View source: R/user_functions.R
get_parameterValues | R Documentation |
This function retrieves parameter values for the DNA methylation simulation.
get_parameterValues(rootData = NULL)
rootData |
NULL to return default parameter values. For data parameter values, provide rootData as the output of simulate_initialData()$data. |
The function called without arguments returns default parameter values. When rootData (as $data output of simulate_initialData()) is given, it returns data parameter values.
A data frame containing default parameter values.
# Get default parameter values
default_values <- get_parameterValues()
# Get parameter values of simulate_initialData() output
custom_params <- get_parameterValues()
infoStr <- data.frame(n = c(5, 10), globalState = c("M", "U"))
rootData <- simulate_initialData(infoStr = infoStr, params = custom_params)$data
rootData_paramValues <- get_parameterValues(rootData = rootData)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.