Learn R Programming

dadjokeapi (version 1.0.2)

groan_id: Function to return a specific dad joke

Description

This function returns a specific dad joke from https://icanhazdadjoke.com using its dad joke ID.

Usage

groan_id(joke_id)

Arguments

joke_id

A specific dad joke ID to return

Value

Returns a two item list with the first item holding the joke as a character and the second item containing the joke id as a character.

Examples

Run this code
# NOT RUN {
groan_id("GlGBIY0wAAd")
# }

Run the code above in your browser using DataLab