View source: R/set.char.seed.R
set.char.seed | R Documentation |
set.char.seed()
converts a character vector into an integer used as reproducible
seed
set.char.seed(char)
char |
a character vector |
Each letter and number in the character vector is assigned a specific number. These numbers are concatenated and divided by 2^30 - 1, and the remainder of this division is used as the numeric reproducible seed.
If you get a warning about 'loss of accuracy", consider using a more succinct character vector, otherwise you will get a seed of 0.
set.char.seed()
takes a character vector and returns a reproducible seed.
JP Monteagudo
set.char.seed("The Sticky Chicken")
set.char.seed("lanky tadpole")
set.char.seed("Manny said what?")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.