parse_parm: Some helper function for simulation

View source: R/utils.R

parse_parmR Documentation

Some helper function for simulation

Description

These function helps to parse a character string into a list object and also creates parameters for performing multiple simulations

Usage

parse_parm(character_string, in_list = FALSE)

Arguments

character_string

A character string for parameter where the items in a list is separated by semicolon. For example: 1, 2; 3, 4

in_list

TRUE if the result need to wrap in a list, default is FALSE

Value

A list or a vector

Examples

parse_parm("1, 2; 3, 4")
parse_parm("1, 2")

therimalaya/simulatr documentation built on Nov. 20, 2022, 2:49 p.m.