Learn R Programming

SimDesign (version 0.7)

SimDesign_functions: Skeleton functions for simulations

Description

This function prints skeleton versions of the required functions and work-flow required to run simulations, complete with the correct inputs and class of outputs. Use this at the start when defining your simulation.

Usage

SimDesign_functions(filename = NULL, comments = TRUE, singlefile = FALSE)

Arguments

filename
a character vector indicating whether the output should be saved to two respective files containing the simulation design and the functional components, respectively. Using this option is generally the recommended approach when beginning to write a Monte
comments
logical; include helpful comments? Default is TRUE
singlefile
logical; when filename is included, put output in one files? When FALSE the output is saved to two separate files containing the functions and design definitions. Default is FALSE

Examples

Run this code
SimDesign_functions()
SimDesign_functions(comments=FALSE) #without comments

# write output to two files
SimDesign_functions('mysim')

# write output files to a single file without comments
SimDesign_functions('mysim', comments = FALSE, singlefile = TRUE)

Run the code above in your browser using DataLab