letters Constant — letterRep" />
The letterRep
function "wraps" the letters
constant, making
repeated letters unique by pasting characters together.
letterRep(inRange)
inRange | The (numeric) input range. |
---|
A character vector.
http://stackoverflow.com/a/21681824/1270695
Ananda Mahto
letterRep(60)#> [1] "a" "b" "c" "d" "e" "f" "g" "h" "i" "j" "k" "l" #> [13] "m" "n" "o" "p" "q" "r" "s" "t" "u" "v" "w" "x" #> [25] "y" "z" "aa" "bb" "cc" "dd" "ee" "ff" "gg" "hh" "ii" "jj" #> [37] "kk" "ll" "mm" "nn" "oo" "pp" "qq" "rr" "ss" "tt" "uu" "vv" #> [49] "ww" "xx" "yy" "zz" "aaa" "bbb" "ccc" "ddd" "eee" "fff" "ggg" "hhh"letterRep(20:40)#> [1] "t" "u" "v" "w" "x" "y" "z" "aa" "bb" "cc" "dd" "ee" "ff" "gg" "hh" #> [16] "ii" "jj" "kk" "ll" "mm" "nn"