top_grossing: Get the top N ranking grossing movies

Description Usage Arguments Value Examples

View source: R/top_grossing.R

Description

Get the top N ranking grossing movies

Usage

1
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

1
2
3
4
5
6
top_grossing()

top_grossing(ranks = 1:5)

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

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