1.

What will be the class of the vector if you concatenate a number and NA?(a) Number(b) Character(c) Integer(d) No classThis question was posed to me in quiz.Asked question is from Functions in portion Control Structures, Functions, Scoping Rules, Loop Functions and Debugging of R Programming

Answer»

The CORRECT choice is (a) Number

Best explanation: The CLASS of the resulting vector if you concatenate a number and NA is a Number. Decimal values are ALSO CALLED NUMERIC in R. It is the default computational data type in R language.



Discussion

No Comment Found

Related InterviewSolutions