Get Sequence of Character Letters from A-Z in R (2 Examples)

In this tutorial you’ll learn how to generate a sequence of character letters in R.

Example 1: Get Sequence of Upper Case Letters from A-Z

LETTERS                     # Access upper case letters object
#  [1] "A" "B" "C" "D" "E" "F" "G" "H" "I" "J" "K" "L" "M" "N" "O" "P" "Q" "R" "S" "T" "U" "V" "W" "X" "Y" "Z"

Example 2: Get Sequence of Lower Case Letters from A-Z

letters                     # Access lower case letters object
#  [1] "a" "b" "c" "d" "e" "f" "g" "h" "i" "j" "k" "l" "m" "n" "o" "p" "q" "r" "s" "t" "u" "v" "w" "x" "y" "z"

Leave a Reply

Your email address will not be published.

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed

Menu
Top