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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

66) An escape character is a backslash \ followed by the character you want to insert.

A

Escape Characters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

68) The escape character allows you to use double quotes when you normally would not be allowed:

A

Escape Characters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

69) Other escape characters in R:
\ Backslash \n New Line
\r Carriage Return \t Tab
\b Backspace

A

Escape Characters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly