Learn R Programming

RXKCD (version 1.7-2)

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

Description

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

Usage

searchXKCD(which = "significant", xkcd.data = NULL)

Arguments

which
string.
xkcd.data
A character string giving a xkcd file in csv format. By default the csv file in the data directory of the xkcd package are used.

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

http://xkcd.com/license.html

Examples

Run this code
library("RXKCD")
searchXKCD(which="significant")
searchXKCD(which="someone is wrong")

Run the code above in your browser using DataLab