Title: | The Office Quotes on-Demand |
---|---|
Description: | Provides functions to randomly select, return, and print quotes or entire scenes from the American version of the show the Office. Receive laughs from one of of the greatest sitcoms of all time on demand. Add these functions to your '.Rprofile' to get a good laugh everytime you start a new R session. |
Authors: | Tyler Bradley [aut, cre] |
Maintainer: | Tyler Bradley <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.1.1 |
Built: | 2024-11-26 06:32:58 UTC |
Source: | CRAN |
Get quotes from specific characters
michael(...) jim(...) dwight(...) pam(...) andy(...) kevin(...) angela(...) erin(...) oscar(...) ryan(...) darryl(...) phyllis(...) toby(...) kelly(...) stanley(...) meredith(...) creed(...)
michael(...) jim(...) dwight(...) pam(...) andy(...) kevin(...) angela(...) erin(...) oscar(...) ryan(...) darryl(...) phyllis(...) toby(...) kelly(...) stanley(...) meredith(...) creed(...)
... |
arguments to be passed to get_quote |
## Not run: michael() jim() kelly() dwight() ## End(Not run)
## Not run: michael() jim() kelly() dwight() ## End(Not run)
Get quotes from different departments of the office
sales(...) accounting(...) customer_service(...) hr(...) reception(...) corporate(...)
sales(...) accounting(...) customer_service(...) hr(...) reception(...) corporate(...)
... |
arguments to be passed to get_quote |
## Not run: sales() accounting() ## End(Not run)
## Not run: sales() accounting() ## End(Not run)
Filter office_quotes
filter_quotes(season = NULL, episode = NULL, name = NULL, scene = NULL, character = "main", min_nword = 10, max_nword = 100, include_actions = FALSE)
filter_quotes(season = NULL, episode = NULL, name = NULL, scene = NULL, character = "main", min_nword = 10, max_nword = 100, include_actions = FALSE)
season |
an integer specifyng the season for which to get quotes from Currently, all seasons are included except season 5 |
episode |
an integer specifying the episode number to get quote from |
name |
a character string with the episode name to get quote from |
scene |
an integer specifying the scene number |
character |
a character specifying the character or department to get quote from. Defaults to 'main', see details |
min_nword |
the minimum number of words a quote must have to be included, defaults to 4 |
max_nword |
the maximum number of words a quote can have to be included, defaults to 20 |
include_actions |
should non spoken actions be included in the output? Defaults to FALSE (i.e. actions will not be included) |
Main Character List - Michael, Dwight, Jim, Pam, Andy, Kevin, Angela, Erin, Oscar, Ryan, Darryl, Phyllis, Toby, Kelly, Stanley, Meredith, and Creed
Other Departments - Sales, Accounting, HR, Customer Service, Reception, and Corporate
Randomly pull quotes from the office_quotes data frame
get_quote(..., force_print = FALSE, idx = FALSE)
get_quote(..., force_print = FALSE, idx = FALSE)
... |
arguments to pass to filter_quotes |
force_print |
a logical speicfying whether you want the quote to print even if it is assigned to a variable name |
idx |
logical specifying whether the quote index should be printed with the quote |
## Not run: get_quote() # return quote with index get_quote(idx = TRUE) # get quotes using various filters get_quote(season = 1) get_quote(season = 4, episode = 3) get_quote(season = 4, character = "Jim") ## End(Not run)
## Not run: get_quote() # return quote with index get_quote(idx = TRUE) # get quotes using various filters get_quote(season = 1) get_quote(season = 4, episode = 3) get_quote(season = 4, character = "Jim") ## End(Not run)
Dataset of all quotes from The Office
Season, episode and scene combinations
office_quotes ep_n_scene
office_quotes ep_n_scene
An object of class tbl_df
(inherits from tbl
, data.frame
) with 50221 rows and 7 columns.
Get a random scene dialog from the Office
random_scene()
random_scene()
## Not run: random_scene()
## Not run: random_scene()
Get a "That's what she said" joke from the office
she_said()
she_said()