Introduction - This is the main header of the chapter for both chapter 5 and 12, there is use of very similar ways to display data.

This is just a paragraph.

This is a subheader

#This is how to type within a boxed in text 
library(nycflights13)
library(tidyverse)
## ── Attaching packages ──────────────────────────── tidyverse 1.3.0 ──
## ✓ ggplot2 3.2.1     ✓ purrr   0.3.3
## ✓ tibble  2.1.3     ✓ dplyr   0.8.3
## ✓ tidyr   1.0.0     ✓ stringr 1.4.0
## ✓ readr   1.3.1     ✓ forcats 0.4.0
## ── Conflicts ─────────────────────────────── tidyverse_conflicts() ──
## x dplyr::filter() masks stats::filter()
## x dplyr::lag()    masks stats::lag()

This is a smaller subheader

This is a number chart

#flights
#> # A tibble: 336,776 x 19
#>    year month   day dep_time sched_dep_time dep_delay arr_time sched_arr_time
#>   <int> <int> <int>    <int>          <int>     <dbl>    <int>          <int>
#> 1  2013     1     1      517            515         2      830            819
#> 2  2013     1     1      533            529         4      850            830
#> 3  2013     1     1      542            540         2      923            850
#> 4  2013     1     1      544            545        -1     1004           1022
#> 5  2013     1     1      554            600        -6      812            837
#> 6  2013     1     1      554            558        -4      740            728
#> # … with 3.368e+05 more rows, and 11 more variables: arr_delay <dbl>,
#> #   carrier <chr>, flight <int>, tailnum <chr>, origin <chr>, dest <chr>,
#> #   air_time <dbl>, distance <dbl>, hour <dbl>, minute <dbl>, time_hour <dttm>

#This is the same error I found with chapter 12, I have attempted to include a photo but cannot call it correctly.

! [Alt text] (//Users/kimberlytang/Documents/transform-logical.png)

#Exercises
#1. Find all flights that

#1. Had an arrival delay of two or more hours
#2. Flew to Houston (IAH or HOU)
#3. Were operated by United, American, or Delta
#4. Departed in summer (July, August, and September)
#5. Arrived more than two hours late, but didn’t leave late
#6. Were delayed by at least an hour, but made up over 30 minutes in flight
#7. Departed between midnight and 6am (inclusive)

#2. Another useful dplyr filtering helper is between(). What does it do? Can you use it to simplify the code needed to answer the previous challenges?
##is equivalent to lower<=x & x<=upper when incbounds=TRUE, or lower<x & y<upper when FALSE

#3. How many flights have a missing dep_time? What other variables are missing? What might these rows represent?

#4. Why is NA ^ 0 not missing? Why is NA | TRUE not missing? Why is FALSE & NA not missing? Can you figure out the general rule? (NA * 0 is a tricky counterexample!)

Again, I am so incredibly frustrated because I was unable to teach myself these topics. It was difficult because we have yet to learn this in class, and extensive googling does not replace a class. In the directions, the phrase used in the assignment directions is “attempt to answer”, and I have been unsuccessful in doing so, so I can only comment out that I have attempted but failed analyzing the data for flights.