The data set box
of the package classdata
contains weekly box office gross for all movies in theaters in the last
five years, see ?box
for a description of all variables in
the data set.
For all of the questions use functionality from the
tidyverse
whenever possible.
Total.Gross
) over time. Describe the plotlubridate
to extract
year
and month
from the date at which box
office data was released.?yday
)
for each year (we don’t actually have daily data - we only have data for
every seven days). Plot cumulative yearly gross for each year by day of
the year. Describe the plot. Note: your submission is supposed to be fully reproducible, i.e. the TA and I will ‘knit’ your submission in RStudio.
For the submission: submit your solution in an R Markdown file and (just for insurance) submit the corresponding html (or Word) file with it.