A

Admin • 833.24K Points
Coach

Q. How is the switch() function different from if-else in R?

  • (A) switch() is used for multiple conditions, if-else for two conditions
  • (B) switch() can only handle numeric values, if-else can handle any type
  • (C) if-else can only handle numeric values, switch() can handle any type
  • (D) Both switch() and if-else are used interchangeably
  • Correct Answer - Option(A)
  • Views: 27
  • Filed under category R Programming
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.