1.

Which function replicates elements of vectors?(a) C(b) Rep(c) Crep(d) GrepI have been asked this question in examination.I'd like to ask this question from Data Types topic in portion Nuts and Bolts and Getting Data In and Out of R Programming

Answer»

Correct choice is (b) Rep

Explanation: The rep FUNCTION replicates ELEMENTS of VECTORS. The seq function creates a regular sequence of values to form a vector. The FOUR most frequently used types of data objects in R are vectors, matrices, data frames and lists.



Discussion

No Comment Found

Related InterviewSolutions