1.

Which function takes a dim attribute which creates the required number of dimensions?(a) Vector(b) Array(c) Matrix(d) ListsI have been asked this question at a job interview.This interesting question is from Data Types in portion Nuts and Bolts and Getting Data In and Out of R Programming

Answer»

The correct OPTION is (b) Array

Easy explanation: The array function takes a dim attribute which CREATES the REQUIRED number of dimensions. While matrices are confined to TWO dimensions, arrays COULD be of any number of dimensions.



Discussion

No Comment Found

Related InterviewSolutions