Google News
logo
R - Quiz(MCQ)
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)
DateTime
C)
Sys.DateTime
D)
Sys.Date

Correct Answer :   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.

Advertisement