sim.params: Simulation parameter data frame generation

View source: R/auxiliary.R

sim.paramsR Documentation

Simulation parameter data frame generation

Description

create a dataframe of all possible parameter combinations in lexicographic order (if tags are supplied, use tag for column names)

Usage

sim.params(..., shuffle = FALSE, stringAsFactors = FALSE)

Arguments

...

each argument should be of the form of tag = vector, meaning the variable named 'tag' takes values in 'vector'.

shuffle

whether to shuffle the rows of the simulation dataframe randomly

Details

A sample usage is sim.params(tag1 = vec1, tag2 = vec2, tag3 = vec3).


wangtengyao/putils documentation built on Nov. 26, 2024, 2:01 a.m.