Learn R Programming

RXKCD (version 1.9.2)

searchXKCD: Search your favorite XKCD comic strip by title/transcript

Description

This function uses grep to inspect the title and transcript for all the occurrences of a specified string and returns a data.frame with both the number and the title of the XKCD comic strips.

Usage

searchXKCD(which = "significant")

Arguments

which

string.

Value

a data.frame containing the following fields:

  • num The num of the XKCD comic strip

  • title The title of the XKCD comic strip

References

https://xkcd.com/license.html

Examples

Run this code
# NOT RUN {
library("RXKCD")
searchXKCD(which="significant")
searchXKCD(which="someone is wrong") 
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab