1.

Which of the following operator is used to create integer sequences?(a) :(b) ;(c) –(d) ~I got this question by my college director while I was bunking the class.Enquiry is from Overview of R topic in section History, Overview and Getting Started of R Programming

Answer»

Right choice is (a) :

To explain: “:” OPERATOR is used to create an integer sequence. The other OPERATORS are used for other PURPOSES. Integer sequence is the basic operator used in R. The [ operator can be used to extract multiple ELEMENTS of a vector by passing the operator an integer sequence.



Discussion

No Comment Found

Related InterviewSolutions