Which Of The Following Is Valid Syntax For If Else Statement In #333
Which of the following is valid syntax for if else statement in R?
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.1.
Which of the following is valid syntax for if else statement in R?
if(<condition>) { ## do something } else { ## do something else }
if(<condition>) { ## do something } elseif { ## do something else }
if(<condition>) { ## do something } else if { ## do something else }
if(<condition>) { ##& do something } else { ##@ do something else }