1.

All columns in a matrix must have the same mode and the _________ length.(a) Different(b) Same(c) May be the same(d) May be differentThe question was asked in an internship interview.My query is from Data Types topic in chapter Nuts and Bolts and Getting Data In and Out of R Programming

Answer»

Correct option is (b) Same

Easiest EXPLANATION: All columns in a matrix must have the same mode(numeric, character, etc) and ALSO the same LENGTH. byrow=TRUE INDICATES that the matrix should be FILLED by rows. byrow=FALSE indicates that the matrix should be filled by columns (the default).



Discussion

No Comment Found

Related InterviewSolutions