1.

To get the current date, the _______ function will return a Date object which can be converted to a different class if necessary.(a) Sys.Time(b) Sys.Date(c) Sys.DateTime(d) DateTimeThis question was posed to me by my college director while I was bunking the class.I want to ask this question from Dates and Times topic in chapter Control Structures, Functions, Scoping Rules, Loop Functions and Debugging of R Programming

Answer»

The correct option is (B) Sys.Date

Explanation: The POSIXlt class stores date/time values as a list of components (HOUR, MIN, sec, mon, etc.) making it easy to extract these PARTS.



Discussion

No Comment Found

Related InterviewSolutions