Course Content

Course Content


Date objects are saved as integer values in R, allowing them to be compared and manipulated in the same way that numeric vectors are. Logical comparisons are straightforward. When it comes to dates, earlier dates are considered "lesser" than later dates.

To convert character data to dates, use the as. Date() function. Date(x, "format") is the format, with x being the character data and format being the suitable format.

R provides a date data type in addition to the time data types. The date data type differs from the time data type in that it keeps track of days rather than seconds. The as. Date function can be used to convert a string to a date type.

In R, the time() method can be used to combine the date and time to produce a date-time object in POSIX format. date – The date can be supplied in either the Date format or as a character string denoted by "YYYY-MM-DD."

Share With Friend

Have a friend to whom you would want to share this course?

Download LearnVern App

App Preview Image
App QR Code Image
Code Scan or Download the app
Google Play Store
Apple App Store
598K+ Downloads
App Download Section Circle 1
4.57 Avg. Ratings
App Download Section Circle 2
15K+ Reviews
App Download Section Circle 3
  • Learn anywhere on the go
  • Get regular updates about your enrolled or new courses
  • Share content with your friends
  • Evaluate your progress through practice tests
  • No internet connection needed
  • Enroll for the webinar and join at the time of the webinar from anywhere