1.

How do you create an integer suppose 5 in R?(a) 5L(b) 5l(c) 5i(d) 5dI got this question in an online interview.This question is from Overview of R in section History, Overview and Getting Started of R Programming

Answer» RIGHT OPTION is (a) 5L

Explanation: To CREATE an integer L should be ADDED to the integer. L is added to specify that it is an integer. An integer can also be created with many types. If you EXPLICITLY want an integer, you need to specify the L suffix.


Discussion

No Comment Found

Related InterviewSolutions