Generate a sequence of characters from 'A'-'Z'
I can make a sequence of numbers like this: s = seq(from=1, to=10, by=1) How do I make a sequence of characters from A-Z? This doesn't work: seq(from=1, to=10) Use LETTERS and letters (for uppercase and lowercase respectively). Use the code you have with letters and/or LETTERS : > LETTERS[seq( from = 1, to = 10 )] [1] "A" "B" "C" "D" "E" "F" "G" "H" "I" "J" > letters[seq( from = 1, to = 10 )] [1] "a" "b" "c" "d" "e" "f" "g" "h" "i" "j" Just use the predefined variables letters and LETTERS . And for completeness, here it something using seq : R> rawToChar(as.raw(seq(as.numeric(charToRaw('a')),