1

In R, how do you create a switch statement with a default case?

Correct Answer: switch(case_expression, case1 = expr1, case2 = expr2, default = default_expr)

Make the most of this question

This page focuses on one R Programming MCQs question from Programming. After checking the answer, return to the topic list to practice more or run a timed set.

R Programming MCQs MCQ: In R, how do you create a switch statement with a default case? | Extra Education