Description Usage Arguments Details Value Author(s) Examples
Function for Knock-Knock Jokes.
1 2 3 | KnockKnockJoke(name, punch)
KnockKnock(x)
|
x |
integer, id for a joke in |
name |
character, name in the joke. |
punch |
character, punchline in the joke. |
KnockKnockJoke
is used to create the S4 class for jokes.
KnockKnock()
displays a random joke from
the list inside.
An S4 object of class "KnockKnockJoke"
with 2 slots:
name
, joke
.
Bence, Lilla, and Peter Solymos <psolymos@gmail.com> based on various sources (friends, library, Internet).
1 2 3 4 5 6 | ## create a joke object
KnockKnockJoke(name="Alex", punch="Alex-plain later.")
## display random joke
KnockKnock()
## display 1st joke from list
KnockKnock(1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.