Title: | Motivational Quotes and Shakespearean Bard–bits for Personal Projects |
---|---|
Description: | Generate motivational quotes and Shakespearean word combinations (bard–bits) that a user can consider for their personal projects. Each of the package functions takes two arguments, cat which default to any, and a a numeric or character seed to ensure reproducible results. |
Authors: | JP Monteagudo [aut, cre, cph] |
Maintainer: | JP Monteagudo <[email protected]> |
License: | GPL (>= 3) |
Version: | 0.1.1 |
Built: | 2024-11-23 05:50:05 UTC |
Source: | https://github.com/jpmonteagudo28/despair |
bard.bits()
generates bard bits using Shakespeare's works and the DSM-5 to use in personal projects. The term bard–bits comes from Shakespeare's title
'The Bard of Avon' and the bits ( Shakespeare's characters, places, professions) used to come up with coherent combinations.
bard.bits(cat, seed = NULL)
bard.bits(cat, seed = NULL)
cat |
a category to be used as bard–bit. Defaults to "any", but "character", "jobs","alliterate", "dsm_5" are available. |
seed |
an optional numeric or character seed for reproducible results. |
When the category is "any" (the default), the function combines Shakespeare's adjectives, DSM-5 adjectives, colors and the characters, jobs, animals and things data frames to then sample one adjective and one noun from each of the two combinations.
When the category is "alliterate", the function combines the adjectives and colors data frames and the animals and characters data frame. After an adjective is selected, the first letter will be used to match against a noun.
When the category is "character", the function will derive a bard bit from a data frame of Shakespeare's characters and the adjectives data frame.
When the category is "jobs", the function will derive a bard bit from the adjectives and colors data frame and sample one value from the Shakespeare's jobs data frame.
When the category is "dsm_5", the function will derive a bard bit from the combined jobs, characters, animals and the DSM-5 adjectives data frame.
bard.bits()
takes a category and an optional numeric or character seed
to produce a bard–bit.
JP Monteagudo
bard.bits("any") bard.bits("dsm_5", seed = 1234) bard.bits("jobs", seed = "horrid antonio")
bard.bits("any") bard.bits("dsm_5", seed = 1234) bard.bits("jobs", seed = "horrid antonio")
demotivate()
is a tool to demotivate even the highly motivated individual.
Use with caution and remember to not take it personally.
demotivate(cat = "any", seed)
demotivate(cat = "any", seed)
cat |
a demotivational category to choose from. The function defaults to 'any'. |
seed |
a numeric or character seed for reproducible results. The function defaults to 'NULL'. |
When cat is 'any' (default), the function combines all category data frames and then samples from the new,combined data frame.
There are a total of six categories: family, life, work, science, TV, and rednecks. When a specific category is chosen the function will sample from a demotivational quote data frame and output a random quote for your spiritual and mental decay.
demotivate()
takes a preferred category and an optional reproducible seed
to return a demotivational quote for the user to feel worse at any given time.
JP Monteagudo
demotivate("any",seed = "lanky puppy") demotivate("work")
demotivate("any",seed = "lanky puppy") demotivate("work")
despair.message()
produces a message about the package version
and the version of R making use of this package.
despair.message()
despair.message()
despair.message()
returns a message about the install version
of despair.
JP Monteagudo
despair.message()
despair.message()
This is a data frame of adjectives used in the DSM-5 to describe mental states
dsm_5
dsm_5
a data frame with 150 observations and 1 column
values
a character vector
This is a data frame of family-related demotivational quotes in English taken from American popular culture.
family
family
a data frame with 13 observations and1 column
values
a character vector
This is a data frame if life-related demotivational quotes in English taken from American popular culture.
life
life
a data frame with 27 observations and 1 column
values
a character vector
This is a data frame of modern and contemporary literature quotes to be used with motivate()
lit
lit
a data frame with 22 observations and 1 column
values
a character vector
This is a data frame of modern and contemporary historical and pop-culture icons used in motivate()
modern
modern
a data frame of with 40 observations and 1 column
values
a character vector
motivate()
is a tool to lift up even the unmotivated individual.
Use with caution and remember— DO take it personally.
motivate(cat = "any", seed)
motivate(cat = "any", seed)
cat |
a motivational category to choose from. The function defaults to "any". |
seed |
a numeric or character seed for reproducible results. The function defaults to "NULL". |
When cat is 'any' (default), the function combines all category data frames and then samples from the new,combined data frame.
There are a total of five categories: psych, stoic, religion, lit(literature), and modern (history) When a specific category is chosen the function will sample from a motivational quote data frame and output a random quote for your spiritual and mental growth.
motivate()
takes a preferred category and an optional reproducible seed
to return a motivational quote for the user to feel better at any given time.
JP Monteagudo
motivate("any",seed = "lethargic raccoon") motivate("lit") motivate("stoic", seed = 2899)
motivate("any",seed = "lethargic raccoon") motivate("lit") motivate("stoic", seed = 2899)
This is a data frame of psychology-related quotes to be used in motivate()
psych
psych
a data frame with 34 observations and 1 column
values
a character vector
This is a data frame of sweet redneck humor taken from Southern popular culture.
rednecks
rednecks
a data frame with 21 observations and 1 column
values
a character vector
This is a data frame of religiously-inspired motivational quotes to be used in motivate()
religion
religion
a data frame with 45 observations and 1 column.
values
a character vector
This is a data frame of science-related demotivational quotes.
science
science
a data frame of 27 observations and 1 column.
values
a character vector
set.char.seed()
converts a character vector into an integer used as reproducible
seed
set.char.seed(char)
set.char.seed(char)
char |
a character vector |
Each letter and number in the character vector is assigned a specific number. These numbers are concatenated and divided by 2^30 - 1, and the remainder of this division is used as the numeric reproducible seed.
If you get a warning about 'loss of accuracy", consider using a more succinct character vector, otherwise you will get a seed of 0.
set.char.seed()
takes a character vector and returns a reproducible seed.
JP Monteagudo
set.char.seed("The Sticky Chicken") set.char.seed("lanky tadpole") set.char.seed("Manny said what?")
set.char.seed("The Sticky Chicken") set.char.seed("lanky tadpole") set.char.seed("Manny said what?")
This is a data frame of adjectives used in Shakespeare's works.
shake_adjectives
shake_adjectives
a data frame with 100 observations and 1 column
values
a character vector
This is a data frame of animals used in Shakespeare's works
shake_animals
shake_animals
a data frame with 150 observations and 1 column
values
a character vector
This is a data frame of Shakespeare's characters
shake_chars
shake_chars
a data frame with 137 observations and 1 column
values
a character vector
This is a data frame of colors used in Shakespeare's work and other unusual colors
shake_clrs
shake_clrs
a data frame with 300 observations and 1 column
values
a character vector
This is a data frame of professions used in Shakespeare's works.
shake_jobs
shake_jobs
a data frame with 103 observations and 1 column
values
a character vector
This is a data frame of objects used in Shakespeare's works.
shake_things
shake_things
a data frame with 150 observations and 1 column
values
a character vector
This is a data frame of stoic motivational quotes to be used in motivate()
stoic
stoic
a data frame with 32 observations and 1 column.
values
a character vector
This is a data frame of tv and film demotivational quotes taken from American film and TV shows.
tv
tv
a data frame with 23 observations and 1 column
values
a character vector
This is a data frame of work-related demotivational quotes
work
work
a data frame with 31 observations and 1 column
values
a character vector