In R language, a vector is defined that it can only contain objects of the ________

In R language, a vector is defined that it can only contain objects of the ________
A. Same class
B. Different class
C. Similar class
D. Any class
 
Answer: a
Explanation: A vector can only contain objects of the same class. A vector cannot have contain objects of the different class. Same class objects are used mostly. The most basic type of R object is a vector. Empty vectors can be created with the vector() function.
 

Tìm kiếm

Back
Top