cursorToList {rethinker} | R Documentation |
Convert cursor into a list
Description
Converts cursor into a list.
For convenience, when given anything other than cursor returns this object unchanged; this way can be used to wrap the result of $run
, so that it is never a cursor.
Usage
cursorToList(x, maxResults = 10000)
Arguments
x |
RethinkDB cursor or any object. |
maxResults |
Number of results sufficient to stop pulling from cursor. |
Value
A list of elements pulled from x
if it is a cursor, x
otherwise.
Note
The lenght of a list may be larger than maxResults
because RethinkDB transmits results in batches.
Author(s)
Miron B. Kursa
[Package rethinker version 1.1.0 Index]