Q. How is the switch() function different from if-else in R?
β
Correct Answer: (A)
switch() is used for multiple conditions, if-else for two conditions
You must be Logged in to update hint/solution