Home / CSE MCQs / R Programming MCQs :: Discussion

Discussion :: R Programming MCQs

  1. What would the following code print ?

    x - c("a", "b", "c")
    as.logical(x)
  2. A.
    a b c
    B.
    NA NA NA
    C.
    0 1 2
    D.
    All of the mentioned

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    When nonsensical coercion takes place, you will usually get a warning from R.


Be The First To Comment