R Programming Basics - Study Mode

[#56] The . . . . . . . . stores the nominal values as a vector of integers in the range of 1 to unique values in the nominal variable.
Correct Answer

(A) Factor

[#57] The . . . . . . . . function creates a regular sequence of values to form a vector.
Correct Answer

(C) seq

[#58] What is the role of the rep() function in R?
Correct Answer

(A) Repeat elements of a vector

[#59] How do you check the data type of a variable in R?
Correct Answer

(B) class(var)

[#60] What is the output of 5 %% 2 in R?
Correct Answer

(A) 1