Strings - R (Escape Characters) Flashcards
1
Q
65) To insert characters that are illegal in a string, you must use an escape character.
A
Escape Characters
2
Q
66) An escape character is a backslash \ followed by the character you want to insert.
A
Escape Characters
3
Q
67) An example of an illegal character is a double quote inside a string that is surrounded by double quotes:
A
Escape Characters
4
Q
68) The escape character allows you to use double quotes when you normally would not be allowed:
A
Escape Characters
5
Q
69) Other escape characters in R:
\ Backslash \n New Line
\r Carriage Return \t Tab
\b Backspace
A
Escape Characters