Description Usage Arguments Details Value Author(s) Examples
Function for Knock-Knock Jokes.
1 2 3 | KnockKnockJoke(name, punchline)
KnockKnock(x, data)
|
x |
integer, id for a joke in |
data |
a list with joke ingredients, can be missing. |
name |
character, name in the joke. |
punchline |
character, punchline in the joke. |
KnockKnockJoke
is used to create the S4 class for jokes.
KnockKnock()
displays a random joke from
the data set kkjokes
.
An S4 object of class "KnockKnockJoke"
with 2 slots: name
,
punchline
.
Peter Solymos <psolymos@gmail.com>
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.