Exercise

Converting string types to date types

The discipline_logs data contains a string variable, timestamp, of the time and day the different discipline events occurred.

Instructions

100 XP
  • Load the lubridate library.
  • Use glimpse() to look at the timestamp column.
  • Create a new variable, timestamp_date, that converts the timestamp string column into a date column that contains information about year, month, day, hour, minute, and second.