Easy: R> paste(rep(letters[1:3], 3), rep(letters[24:26], each=3), sep="") [1] "ax" "bx" "cx" "ay" "by" "cy" "az" "bz" "cz" R> nitter.vloup.ch/MilesMcBain/stat…

Jun 16, 2017 · 2:08 PM UTC

3
1
15
Beg to differ. Mine is still shorter than yours, and about eighty times faster (!!), see your gist.
1
1
Replying to @eddelbuettel
Maybe someone should write an "R for tidyr users" cheat sheet.
1
4
Replying to @eddelbuettel
OR: c(outer(chars1, chars2, paste0))
1