Which Of The Following R Code Will Print 8220neither8221 #359
Which of the following R code will print “Neither”?
This multiple choice question (MCQ) is related to the book/course
gs gs110 R Language.
It can also be found in
gs gs110 Control Structures, Functions, Scoping Rules, Loop Functions and Debugging - Control Structures - Quiz No.3.
Which of the following R code will print “Neither”?
> y <- "meat" > switch(y, fruit = "banana", vegetable = "broccoli", "Neither") > y <- "brocolli" > switch(y, fruit = "banana", vegetable = "broccoli", "Neither") > y <- "banana" > switch(y, fruit = "banana", vegetable = "broccoli", "Neither") > y >- "banana" > y(y, fruit = "banana", vegetable = "broccoli", "Neither")