char2seed: Set seed from any string

Description Usage Arguments Examples

View source: R/char2seed.R

Description

Similar to set.seec() from base R, but will take any value

Usage

1
char2seed(x, set = TRUE, ...)

Arguments

x

A single value (character, integer, numeric, etc.) to use as a seed

set

Should the function also set.seed()?

Examples

1
2
3
4
char2seed("1234abcd!@#$")
runif(3)
char2seed("1234abcd!@#$")
runif(3)

polymathematic/CodenameR documentation built on Aug. 19, 2020, 12:09 a.m.