Consider the following expression

Untitled Forums Statistics R programming Consider the following expression

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15886
    nammy
    Participant

    Consider the following expression:
    x <- 5

    y <- if(x < 3) {

    NA

    } else {

    10

    }
    What is the value of ‘y’ after evaluating this expression?

    #15887
    nammy
    Participant

    ANSWER: 10

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.