Sail E0 Webinar
Question
What would the following code print ?x - c("a", "b", "c")as.logical(x)
Options:
A .  a b c
B .  NA NA NA
C .  0 1 2
D .  All of the mentioned
Answer: Option B


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



Was this answer helpful ?

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers