Learn R Programming

shard (version 0.1.0)

results: Extract Results from shard_map

Description

Extract Results from shard_map

Usage

results(x, flatten = TRUE)

Value

List or vector of results.

Arguments

x

A shard_result object.

flatten

Logical. Flatten nested results?

Examples

Run this code
# \donttest{
result <- shard_map(4L, function(shard) shard$idx[[1L]], workers = 2)
pool_stop()
results(result)
# }

Run the code above in your browser using DataLab