DaMiR.goldenDice: Generate a Number to Set Seed

Description Usage Details Value Author(s) Examples

View source: R/helper.R

Description

This function implements a formula based on current date and time.

Usage

1

Details

The number is generated by combining current seconds (S), minutes (Mi), hours (H), days (D), months (Mo), years (Y) and golden ratio (φ), in the form:

Num = (S * Mi + H * D * Mo / D) ^ φ

Value

An integer number.

Author(s)

Mattia Chiesa, Luca Piacentini

Examples

1
2
gen_numb <- DaMiR.goldenDice()
set.seed(gen_numb)

BioinfoMonzino/DaMiRseq documentation built on Aug. 22, 2021, 3:11 p.m.