Description Usage Arguments Value Examples
Retrieve the titles of Wikipedia items based on search string
1 2 | pediasearch(searchstring, lang = "en", extract = FALSE, limit = 20,
namespace = 0)
|
searchstring |
A character string of search string |
lang |
Language of Wikipedia to query, default = 'en' |
extract |
Boolean, to retrieve the extracts or not, only available when namespace = 0 |
limit |
integer, number of items to return |
namespace |
integer, namespace to search for, common namespace: 0 = articles, 14 = categories |
vector of wikipedia titles or vector of extracts
1 2 3 4 5 | pediasearch("ukulele")
pediasearch("ukulele", extract = TRUE, limit = 1)
pediasearch("Python")
pediasearch("Python", namespace = 14) # search for categories
pediasearch("Dynamically typed programming languages", namespace = 14, limit = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.