boxoffice (version 1.3.0)

top_grossing: Get the top N ranking grossing movies

Description

Get the top N ranking grossing movies

Usage

top_grossing(type = "american", ranks = 1:100)

Arguments

type

A string that says which type of box office sorted ranking you want. Options are 'american' (American box office), 'international' (non-American) and 'worldwide' (domestic + international box office).

ranks

A vector of rankings you want it to return. For example. an input of 1:5 will return the top 5 grossing movies.

Value

Data frame returning info on the name of the movie, it's rank, the year the movie was released, and the total gross from domestic (American), international, and total ticket sales.

Examples

Run this code
# NOT RUN {
top_grossing()

top_grossing(ranks = 1:5)

top_grossing(type = "international")
top_grossing(type = "international", ranks = 1:10)
# }

Run the code above in your browser using DataLab