doChunks {wikiTools} | R Documentation |
Execute a function in chunks.
Description
Execute the function f(x,...) in chunks of chunk-size elements each.
Wikidata and Wikimedia API have limits to execute a query. Wikidata has
timeout limits, Wikimedia about the number of titles or pageIds. This function
executes sequentially the function f
over chunks of elements to prevent
errors.
Usage
doChunks(f, x, chunksize, ...)
Arguments
f |
The function to execute. |
x |
Vector of entities or titles/pageids. |
chunksize |
The number of elements in |
... |
The |
Value
The results of execute f
using all values of x
Author(s)
Angel Zazo, Department of Computer Science and Automatics, University of Salamanca
[Package wikiTools version 1.2.7 Index]