Vidyalelo
R Programming · Q3

Control Structures in R Programming

Programming · R Programming · question 3

Q3

How is the switch() function used in R?

A.
To toggle between TRUE and FALSE values
B.
To switch the positions of two elements
C.
To select one of several alternatives
Answer
D.
To change the direction of a loop

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board