Type: | Package |
Title: | The Office Quotes on-Demand |
Version: | 0.1.1 |
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. |
License: | MIT + file LICENSE |
Encoding: | UTF-8 |
LazyData: | true |
Imports: | stringi, crayon |
Depends: | R (≥ 2.10) |
RoxygenNote: | 6.1.1 |
NeedsCompilation: | no |
Packaged: | 2020-02-17 23:34:01 UTC; tylerbradley |
Author: | Tyler Bradley [aut, cre] |
Maintainer: | Tyler Bradley <tcb85@drexel.edu> |
Repository: | CRAN |
Date/Publication: | 2020-02-27 08:50:02 UTC |
Get quotes from specific characters
Description
Get quotes from specific characters
Usage
michael(...)
jim(...)
dwight(...)
pam(...)
andy(...)
kevin(...)
angela(...)
erin(...)
oscar(...)
ryan(...)
darryl(...)
phyllis(...)
toby(...)
kelly(...)
stanley(...)
meredith(...)
creed(...)
Arguments
... |
arguments to be passed to get_quote |
Examples
## Not run:
michael()
jim()
kelly()
dwight()
## End(Not run)
Get quotes from different departments of the office
Description
Get quotes from different departments of the office
Usage
sales(...)
accounting(...)
customer_service(...)
hr(...)
reception(...)
corporate(...)
Arguments
... |
arguments to be passed to get_quote |
Examples
## Not run:
sales()
accounting()
## End(Not run)
Filter office_quotes
Description
Filter office_quotes
Usage
filter_quotes(season = NULL, episode = NULL, name = NULL,
scene = NULL, character = "main", min_nword = 10,
max_nword = 100, include_actions = FALSE)
Arguments
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) |
Details
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
Get office quotes
Description
Randomly pull quotes from the office_quotes data frame
Usage
get_quote(..., force_print = FALSE, idx = FALSE)
Arguments
... |
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 |
Examples
## 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)
Get the last quote index
Description
Get the last quote index
Usage
last_quote()
Dataset of all quotes from The Office
Description
Dataset of all quotes from The Office
Season, episode and scene combinations
Usage
office_quotes
ep_n_scene
Format
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
Description
Get a random scene dialog from the Office
Usage
random_scene()
Examples
## Not run: random_scene()
Get a "That's what she said" joke from the office
Description
Get a "That's what she said" joke from the office
Usage
she_said()