# NOT RUN {
# This will give you all movies from October 10th
# 2012 from the-numbers.com
boxoffice("12-10-10", source = "numbers")
# This will do the same as above but from
# boxofficemojo.com. Each site has
# slightly differing results. Note that
# boxofficemojo is default
# and does not need to be manually inputted
# }
# NOT RUN {
boxoffice("12-10-10")
# }
# NOT RUN {
# Date range from October 10th - October 11th 2012
# }
# NOT RUN {
boxoffice("12-10-10", "12-10-11")
# }
# NOT RUN {
# Same as above, only grab top 10 movies
# }
# NOT RUN {
boxoffice("12-10-10", "12-10-11", number_of_results = 10)
# }
# NOT RUN {
# Same as above, with the-numbers.com as source
# }
# NOT RUN {
boxoffice("12-10-10", "12-10-11",
number_of_results = 10, source = "numbers")
# }
# NOT RUN {
# Multiple dates
# }
# NOT RUN {
boxoffice(c("12-10-10", "13-4-15"))
# }
# NOT RUN {
# Multiple dates with the-numbers as source
# }
# NOT RUN {
boxoffice(c("12-10-10", "13-4-15"), source = "numbers")
# }
# NOT RUN {
# }
Run the code above in your browser using DataCamp Workspace