ddg | R Documentation |
Perform a DDG Instant search on a query term.
ddg(q, max_rel, get_result)
q |
The search string |
max_rel |
(optional) Max. number of related results (default 3), or the number of results returned, which ever is smaller |
get_result |
(optional) Return the first result (either the 'Instant Result“ or, if none, the first related result) |
A "safe" search URL, or the first result if get_result=TRUE passed
ddg('ngrams') ddg('ngrams', 2) ddg('ngrams', get_result=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.