1.

Which is the basic data structure of R containing the same type of data?(a) Functions(b) Array(c) Vector(d) ListsThis question was addressed to me by my school teacher while I was bunking the class.Asked question is from Data Types in section Nuts and Bolts and Getting Data In and Out of R Programming

Answer»

The correct answer is (c) Vector

To explain I would say: Vector is a BASIC DATA structure in R that contains an ELEMENT of similar type. These data types in R can be logical, integer, DOUBLE, character, complex and ALSO raw. In R using the function, typeof() one can check the data type of vector.



Discussion

No Comment Found

Related InterviewSolutions