Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close


Hi again! In this part, we will move to another topic: working with date and time data. It's very common to store date or time data, transform it, or use it in calculations. R has a handy package to help us with this: lubridate.

Let's imagine that we work at a transport company that has data about ships and trucks. Our goal is to calculate how much time elapses between transportation vehicle departure and arrival. In the Instructions we will work with the truck data; and you will work with the ship data. Before we get started, let's have a look at the ships data frame.


Use the head() function to check the ships data frame.