1.

Locator function gives output as ___________(a) Matrix(b) Lists(c) Vector(d) NumberI had been asked this question in an online quiz.This is a very interesting question from Data Types in portion Nuts and Bolts and Getting Data In and Out of R Programming

Answer» RIGHT choice is (B) Lists

The explanation: To extract a sublist, we use single brackets. There are a number of ways of ACCESSING the first component of a list. There are ALSO many functions within R that produce a list as output. EXAMPLES of these functions include spline(), density() and locator().


Discussion

No Comment Found

Related InterviewSolutions