1.

The ________ stores the nominal values as a vector of integers in the range of 1 to unique values in the nominal variable.(a) Factor(b) Matrix(c) Lists(d) FunctionsI got this question by my college professor while I was bunking the class.I would like to ask this question from Data Types in portion Nuts and Bolts and Getting Data In and Out of R Programming

Answer»

Right choice is (a) Factor

Easiest explanation: The factor stores the nominal values as a VECTOR of INTEGERS in the RANGE [1… k] (where k is the no. of unique values of the nominal variable), and an internal vector of character strings (the original values) MAPPED to these integers.



Discussion

No Comment Found

Related InterviewSolutions