A string is a sequence of characters. For example, “Programming” is a string that includes characters: P, r, o, g, r, a, m, m, i, n, g.

In R, we represent strings using quotation marks (double quotes, “ ” or single quotes, ‘ ‘). For example,

# string value using single quotes
‘Hello’

# …

Continue reading: R …