?
What will be the output of the following R code?
What will be the output of the following R code?
> y <- "fruit"
> switch(y, fruit = "banana", vegetable = "broccoli", "Neither")
> y <- "fruit"
> switch(y, fruit = "banana", vegetable = "broccoli", "Neither")
Join the Discussion
Login to post a comment or share your explanation.
Login