Introdcution to dplyr

Code and text for quiz 3.

Load the packages that we need.

Read the data into R.

corp_tax <-  read_excel(here("corp_tax.xlsx"))
result <- corp_tax %>% 
  filter(company=="NVR")

result
# A tibble: 1 x 5
  company profit   tax tax_rate industry                  
  <chr>    <dbl> <dbl>    <dbl> <chr>                     
1 NVR       923.  126.    0.137 Engineering & construction

NVR is in the Engineering & construction industry.