KnockKnock: Knock-Knock Jokes

Description Usage Arguments Details Value Author(s) Examples

Description

Function for Knock-Knock Jokes.

Usage

1
2
3

Arguments

x

integer, id for a joke in data.

data

a list with joke ingredients, can be missing.

name

character, name in the joke.

punchline

character, punchline in the joke.

Details

KnockKnockJoke is used to create the S4 class for jokes.

KnockKnock() displays a random joke from the data set kkjokes.

Value

An S4 object of class "KnockKnockJoke" with 2 slots: name, punchline.

Author(s)

Peter Solymos <psolymos@gmail.com>

Examples

1
2
3
4
5
6
## create a joke object
KnockKnockJoke(name="Alex", punchline="Alex-plain later.")
## display random joke
KnockKnock()
## display 1st joke from 'kkjokes'
KnockKnock(1)

KnockKnockJokes documentation built on May 2, 2019, 5:33 p.m.