Generate a sequence of characters from 'A'-'Z'

James Thompson picture James Thompson · Dec 6, 2010 · Viewed 44.1k times · Source

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)

Answer

Shane picture Shane · Dec 6, 2010

Use LETTERS and letters (for uppercase and lowercase respectively).