1.

What will be the value of following R expression?(a) Warning in log(c(-1, 2)): NaNs produced(b) Error in log(c(-1, 2)): NaNs produced(c) Message(d) All of the mentionedThis question was addressed to me in my homework.Question is taken from Debugging in division Control Structures, Functions, Scoping Rules, Loop Functions and Debugging of R Programming

Answer»

Right answer is (B) Error in log(c(-1, 2)): NaNs produced

To EXPLAIN I would say: Warning is produced due to negative VALUES.



Discussion

No Comment Found

Related InterviewSolutions