HW 1 due Thursday at noon, make sure all checks are passing!
See #random on Slack for playlist request
Lab tomorrow: Come with questions on HW 1, particularly Questions 1-4. You’ll have time to work on Question 5 especially in lab.
# load packageslibrary(tidyverse)library(glue)library(lubridate)library(scales)library(countdown)# set theme for ggplot2ggplot2::theme_set(ggplot2::theme_minimal(base_size =14))# set width of code outputoptions(width =65)# set figure parameters for knitrknitr::opts_chunk$set(fig.width =7, # 7" widthfig.asp =0.618, # the golden ratiofig.retina =3, # dpi multiplier for displaying HTML output on retinafig.align ="center", # center align figuresdpi =300# higher dpi, sharper image)
Transforming and reshaping a single data frame
Data: Hotel bookings
Data from two hotels: one resort and one city hotel