1.

The dimension attribute is itself an integer vector of length _______(a) 1(b) 2(c) 3(d) 4I had been asked this question during an interview for a job.Question is taken from Overview of R in division History, Overview and Getting Started of R Programming

Answer»

The correct OPTION is (b) 2

To explain I WOULD say: It is itself an INTEGER vector of length 2. The dimension ATTRIBUTE in R is an integer vector. Real values larger in MODULUS than the largest integer are coerced to NA. Matrices are vectors with a dimension attribute. The dimension attribute is itself an integer vector of length 2 (number of rows, number of columns).



Discussion

No Comment Found

Related InterviewSolutions