Learn R Programming

rbefdata (version 0.3.5)

bef.mediawiki.api.define: Basic Mediawik API with one task to retrieve descriptions

Description

This function queries Wikipedia in the language of your choice. You can select the language per two character country code Wikipedia uses in they sub domains.

Usage

bef.mediawiki.api.define(term, language = "en")

Arguments

term
Is the term or string you are searching for on Wikipedia.
language
Is the language of the Wikipedia (default: en). You can use two character country codes that Wikipedia uses in their sub domains.

Value

The function returns a vector with description strings.

Examples

Run this code
## Not run: 
# 		descriptions = bef.mediawiki.api.define(term = "Tree")
# 		descriptions = bef.mediawiki.api.define(term = "Baum", language = "de")
# 	     ## End(Not run)

Run the code above in your browser using DataLab