1.

What will be the class of the vector if you concatenate a number and a character?(a) Number(b) Character(c) Integer(d) No classThis question was addressed to me in homework.I'd like to ask this question from Functions topic in chapter Control Structures, Functions, Scoping Rules, Loop Functions and Debugging of R Programming

Answer»

Correct answer is (B) Character

For explanation I WOULD say: The class of the resulting VECTOR if you concatenate a NUMBER and a character is Character class. Decimal values are called NUMERIC in R. It is the default computational data type in R language.



Discussion

No Comment Found

Related InterviewSolutions