Learn R Programming

despair (version 0.1.0)

demotivate: 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)

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.

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

Author

JP Monteagudo

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.

Examples

Run this code
demotivate("any",seed = "lanky puppy")
demotivate("work")

Run the code above in your browser using DataLab