We have a time series data, in this video we will extend our discussion further and look at various functions from lubridate package that are used to extract the information from date-time objects. For e.g. if I want to extract only year from date object, or only month from date object..I can able to do this using various extract functions.
In this video, we will carry out exploratory data analysis of flights data from nycflights13 package. We will filter out Delta Airways and try to answer below questions:
On average, Which month has the largest arrival delay?
On average, Which day of a week has the largest arrival delay?
On average, Which hour of a day has the largest arrival delay?
We will start with month and drill down to day and hour. We will use various functions from lubridate package to extract out the month, day and hour information from time-series data.
The Rmarkdown file can be found at Git Repo:
github.com/sid...
The dplyr package video series can be found at:
• Dplyr Package | Use mu... - How to use mutate function
• Dplyr Package | Genera... - Generate data summary using group_by ( ) and summarise ( ) functions
ggplot2 package video series can be found at:
• ggplot2 package| How t... - How to create a bar chart
Link to previous video on lubridate package is:
• lubridate package | Pa... - Parsig time-series data.
4 сен 2024