1.

___________ function gives an error message if the desired package cannot be loaded.(a) Dplyr(b) Require(c) Library(d) SampleThis question was posed to me in an internship interview.My question is based upon Functions topic in section Control Structures, Functions, Scoping Rules, Loop Functions and Debugging of R Programming

Answer»

Correct answer is (C) Library

To explain: Library () function gives an error message if the DESIRED package cannot be loaded. Require () function is USUALLY used inside a function and THROWS a warning whenever a PARTICULAR package is not found.



Discussion

No Comment Found

Related InterviewSolutions