Q. Which of the following R code will print "Neither"?
β
Correct Answer: (A)
> y <- "meat"
> switch(y, fruit = "banana", vegetable = "broccoli", "Neither")
You must be Logged in to update hint/solution