Question:

What happens when the condition passed to an if statement is

Last updated: 5/6/2023

What happens when the condition passed to an if statement is

What happens when the condition passed to an if statement is vector with length not equal to 1 Note this assumes you have R version 4 2 0 as per the syllabus O An error occurs The code executes with neither warning nor error O It depends on the condition in the if statement A warning occurs