Which of the following R code will print “Neither”?
A.
B.
C.
D.
A.
Code:
> y <- "meat"
> switch(y, fruit = "banana", vegetable = "broccoli", "Neither")
Code:
> y <- "brocolli"
> switch(y, fruit = "banana", vegetable = "broccoli", "Neither")
Code:
> y <- "banana"
> switch(y, fruit = "banana", vegetable = "broccoli", "Neither")
Code:
> y >- "banana"
> y(y, fruit = "banana", vegetable = "broccoli", "Neither")