Vidyalelo
R Programming · Q108

Control Structures in R Programming

Programming · R Programming · question 108

Q108

What will be the output of the following R code? > y switch(y, fruit = "banana", vegetable = "broccoli", "Neither")

A.
"banana"
Answer
B.
"Neither"
C.
"broccoli"
D.
Error

Answer: Option A

Solution

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