Google News
logo
R - Quiz(MCQ)
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 above

Correct Answer :   Error in log(c(-1, 2)): NaNs produced


Explanation : Warning is produced due to negative values.

Advertisement