Description Usage Arguments Value
Apply a function on each coverage
's bricks object. Parameter
fun
is a function with bricks attributes names as parameters. A helper
function func_brick
can be used to create a prototype of this function easily.
The function creates processing clusters using package parallel
.
1 2 | apply_bricks_cluster(coverage, fun, ..., clusters = 1,
cluster_type = c("PSOCK", "FORK"))
|
coverage |
A |
fun |
A function to be called for each brick that receives the bricks' attributes. |
... |
A set of |
clusters |
An |
cluster_type |
A |
A rasters data.frame
object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.