Package 'despair'

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

Help Index


Generate unique bard bits using Shakespeare's work and DSM-5 adjectives

Description

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.

Usage

bard.bits(cat, seed = NULL)

Arguments

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.

Details

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.

Value

bard.bits() takes a category and an optional numeric or character seed to produce a bard–bit.

Author(s)

JP Monteagudo

Examples

bard.bits("any")
bard.bits("dsm_5", seed = 1234)
bard.bits("jobs", seed = "horrid antonio")

Generate demotivational quotes for personal use.

Description

demotivate() is a tool to demotivate even the highly motivated individual. Use with caution and remember to not take it personally.

Usage

demotivate(cat = "any", seed)

Arguments

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'.

Details

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.

Value

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.

Author(s)

JP Monteagudo

Examples

demotivate("any",seed = "lanky puppy")
demotivate("work")

Display package version for despair

Description

despair.message() produces a message about the package version and the version of R making use of this package.

Usage

despair.message()

Value

despair.message() returns a message about the install version of despair.

Author(s)

JP Monteagudo

Examples

despair.message()

A data frame of DSM-5 adjectives

Description

This is a data frame of adjectives used in the DSM-5 to describe mental states

Usage

dsm_5

Format

a data frame with 150 observations and 1 column

values

a character vector


A data frame of family-related demotivational quotes

Description

This is a data frame of family-related demotivational quotes in English taken from American popular culture.

Usage

family

Format

a data frame with 13 observations and1 column

values

a character vector


A data frame of life-related demotivational quotes.

Description

This is a data frame if life-related demotivational quotes in English taken from American popular culture.

Usage

life

Format

a data frame with 27 observations and 1 column

values

a character vector


A data frame of modern and contemporary literature motivational quotes.

Description

This is a data frame of modern and contemporary literature quotes to be used with motivate()

Usage

lit

Format

a data frame with 22 observations and 1 column

values

a character vector


A data frame of modern and contemporary historical and pop-culture icons

Description

This is a data frame of modern and contemporary historical and pop-culture icons used in motivate()

Usage

modern

Format

a data frame of with 40 observations and 1 column

values

a character vector


General motivation quotes for personal use

Description

motivate() is a tool to lift up even the unmotivated individual. Use with caution and remember— DO take it personally.

Usage

motivate(cat = "any", seed)

Arguments

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".

Details

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.

Value

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.

Author(s)

JP Monteagudo

Examples

motivate("any",seed = "lethargic raccoon")
motivate("lit")
motivate("stoic", seed = 2899)

A data frame of psychology-related quotes

Description

This is a data frame of psychology-related quotes to be used in motivate()

Usage

psych

Format

a data frame with 34 observations and 1 column

values

a character vector


A data frame of sweet redneck humor

Description

This is a data frame of sweet redneck humor taken from Southern popular culture.

Usage

rednecks

Format

a data frame with 21 observations and 1 column

values

a character vector


A data frame of religious motivational quotes

Description

This is a data frame of religiously-inspired motivational quotes to be used in motivate()

Usage

religion

Format

a data frame with 45 observations and 1 column.

values

a character vector


A data frame of science-related demotivational quotes

Description

This is a data frame of science-related demotivational quotes.

Usage

science

Format

a data frame of 27 observations and 1 column.

values

a character vector


Convert any character vector to an integer for setting a reproducible seed

Description

set.char.seed() converts a character vector into an integer used as reproducible seed

Usage

set.char.seed(char)

Arguments

char

a character vector

Details

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.

Value

set.char.seed() takes a character vector and returns a reproducible seed.

Author(s)

JP Monteagudo

Examples

set.char.seed("The Sticky Chicken")
set.char.seed("lanky tadpole")
set.char.seed("Manny said what?")

A data frame of Shakespeare's adjectives

Description

This is a data frame of adjectives used in Shakespeare's works.

Usage

shake_adjectives

Format

a data frame with 100 observations and 1 column

values

a character vector


A data frame of Shakespeare's animals

Description

This is a data frame of animals used in Shakespeare's works

Usage

shake_animals

Format

a data frame with 150 observations and 1 column

values

a character vector


A data frame of Shakespeare's characters

Description

This is a data frame of Shakespeare's characters

Usage

shake_chars

Format

a data frame with 137 observations and 1 column

values

a character vector


A data frame of Shakespeare and unusual colors

Description

This is a data frame of colors used in Shakespeare's work and other unusual colors

Usage

shake_clrs

Format

a data frame with 300 observations and 1 column

values

a character vector


A data frame of Shakespeare's jobs

Description

This is a data frame of professions used in Shakespeare's works.

Usage

shake_jobs

Format

a data frame with 103 observations and 1 column

values

a character vector


A data frame of Shakespeare's objects

Description

This is a data frame of objects used in Shakespeare's works.

Usage

shake_things

Format

a data frame with 150 observations and 1 column

values

a character vector


A data frame o stoic motivational quotes

Description

This is a data frame of stoic motivational quotes to be used in motivate()

Usage

stoic

Format

a data frame with 32 observations and 1 column.

values

a character vector


A data frame of tv and film demotivational quotes

Description

This is a data frame of tv and film demotivational quotes taken from American film and TV shows.

Usage

tv

Format

a data frame with 23 observations and 1 column

values

a character vector


A data frame of work-related demotivational quotes

Description

This is a data frame of work-related demotivational quotes

Usage

work

Format

a data frame with 31 observations and 1 column

values

a character vector