fixSeed: Fix seed value.

Description Usage Arguments Value Author(s) Examples

View source: R/methylInheritanceSimInternalMethods.R

Description

Fix seed value when specified value is -1.

Usage

1
fixSeed(vSeed)

Arguments

vSeed

a integer, a seed used when reproducible results are needed. When a value inferior or equal to zero is given, a random integer is used.

Value

a double, the seed value.

Author(s)

Pascal Belleau, Astrid Deschenes

Examples

1
2
3
4
5
## Return vSeed value when value is not -1
methInheritSim:::fixSeed(vSeed = 10)

## Return new value when value is -1
methInheritSim:::fixSeed(vSeed = -1)

belleau/methylInheritanceSim documentation built on April 1, 2020, 2:43 p.m.