What will be the output of log (-5.8) when executed on r console?



What will be the output of log (-5.8) when executed on r console?..

Answer / Mohammad Asif

In R, taking the natural logarithm of a negative number results in NaN (Not a Number). So, the output of log(-5.8) is NaN.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More R Programming Interview Questions

What packages are used for data mining in r?

1 Answers  


Explain how to repeat vectors in r?

1 Answers  


What is the use of apply() in R?

1 Answers  


What is function definition?

1 Answers  


Explain how you can start the r commander gui?

1 Answers  


How would you find out the mean of one column with respect to another?

1 Answers  


What are useful s3 method functions?

1 Answers  


Why the cv.im()?

1 Answers  


How many types of object are present In R?

1 Answers  


Write a custom function in R?

1 Answers  


Explain how to generate lists in r?

1 Answers  


What is a factor?

1 Answers  


Categories