inst/doc/top_grossing.R

## ----setup, include = FALSE----------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

## ------------------------------------------------------------------------
# America
movies <- boxoffice::top_grossing(type = "American")
head(movies)

## ------------------------------------------------------------------------
# International
movies <- boxoffice::top_grossing(type = "international")
head(movies)

## ------------------------------------------------------------------------
# Worldwide
movies <- boxoffice::top_grossing(type = "worldwide")
head(movies)

## ------------------------------------------------------------------------
movies <- boxoffice::top_grossing()
head(movies)

## ------------------------------------------------------------------------
# 
movies <- boxoffice::top_grossing(ranks = 1)
head(movies)

## ------------------------------------------------------------------------
# Worldwide
movies <- boxoffice::top_grossing(ranks = c(1000, 34, 1, 55, 64))
head(movies)

Try the boxoffice package in your browser

Any scripts or data that you put into this service are public.

boxoffice documentation built on May 2, 2019, 3:26 p.m.