Description Usage Arguments Details Value Examples
salt
takes a vector .x
and returns a salted version of it.
The algorithm for salting a vector is:
Select a random sample of characters of length .n_chars
from .chars
. Call this random sample .y
.
Concatenate .y
, the vector .x
, and .y
again in a vectorized fashion.
1 |
.x |
a vector. |
.seed |
an integer to seed the random number generator. |
.chars |
set of characters to salt with. |
.n_chars |
an integer; number of characters to salt with. |
The user is advised to check out Wikipedia for more information.
A salted version of the vector.
1 2 3 4 5 6 7 8 |
[1] "a" "b" "c" "d" "e" "f" "g" "h" "i" "j" "k" "l" "m" "n" "o" "p" "q" "r" "s"
[20] "t" "u" "v" "w" "x" "y" "z"
[1] "waw" "wbw" "wcw" "wdw" "wew" "wfw" "wgw" "whw" "wiw" "wjw" "wkw" "wlw"
[13] "wmw" "wnw" "wow" "wpw" "wqw" "wrw" "wsw" "wtw" "wuw" "wvw" "www" "wxw"
[25] "wyw" "wzw"
[1] "wxbibawxbib" "wxbibbwxbib" "wxbibcwxbib" "wxbibdwxbib" "wxbibewxbib"
[6] "wxbibfwxbib" "wxbibgwxbib" "wxbibhwxbib" "wxbibiwxbib" "wxbibjwxbib"
[11] "wxbibkwxbib" "wxbiblwxbib" "wxbibmwxbib" "wxbibnwxbib" "wxbibowxbib"
[16] "wxbibpwxbib" "wxbibqwxbib" "wxbibrwxbib" "wxbibswxbib" "wxbibtwxbib"
[21] "wxbibuwxbib" "wxbibvwxbib" "wxbibwwxbib" "wxbibxwxbib" "wxbibywxbib"
[26] "wxbibzwxbib"
[1] "flfsnaflfsn" "flfsnbflfsn" "flfsncflfsn" "flfsndflfsn" "flfsneflfsn"
[6] "flfsnfflfsn" "flfsngflfsn" "flfsnhflfsn" "flfsniflfsn" "flfsnjflfsn"
[11] "flfsnkflfsn" "flfsnlflfsn" "flfsnmflfsn" "flfsnnflfsn" "flfsnoflfsn"
[16] "flfsnpflfsn" "flfsnqflfsn" "flfsnrflfsn" "flfsnsflfsn" "flfsntflfsn"
[21] "flfsnuflfsn" "flfsnvflfsn" "flfsnwflfsn" "flfsnxflfsn" "flfsnyflfsn"
[26] "flfsnzflfsn"
[1] "aaaabaaaaab" "aaaabbaaaab" "aaaabcaaaab" "aaaabdaaaab" "aaaabeaaaab"
[6] "aaaabfaaaab" "aaaabgaaaab" "aaaabhaaaab" "aaaabiaaaab" "aaaabjaaaab"
[11] "aaaabkaaaab" "aaaablaaaab" "aaaabmaaaab" "aaaabnaaaab" "aaaaboaaaab"
[16] "aaaabpaaaab" "aaaabqaaaab" "aaaabraaaab" "aaaabsaaaab" "aaaabtaaaab"
[21] "aaaabuaaaab" "aaaabvaaaab" "aaaabwaaaab" "aaaabxaaaab" "aaaabyaaaab"
[26] "aaaabzaaaab"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.