Chapter 13: Numbers
Set up
We have already loaded the R packages you need for this tutorial. Once you start working in RStudio, you will run code like the code shown below to load the R packages you need.
Exercises
All exercises are from R for Data Science 2nd Edition.
Ex 3 in Section 13.4.8
Currently dep_time and sched_dep_time are convenient to look at, but hard to compute with because they’re not really continuous numbers. You can see the basic problem by running the code below: there’s a gap between each hour.
Convert them to a more truthful representation of time (either fractional hours or minutes since midnight).
Open code chunk
Here is a code chunk in case you wish to play around with some code