Learn R Programming

despair (version 0.1.0)

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

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.

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

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

Examples

Run this code

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

Run the code above in your browser using DataLab