r - What does raster$fun do? -
i trying use code referenced in this post can't figure out why necessary run raster.list$fun = mean
. (see answers in link) can tell me does?
when using do.call()
have supply arguments list:
in provided link do.call function used mosaic list of raster images. first argument of function do.call() function want use (in case mosaic
), , sencond argument list of additional parameters. in case raster images plus function should used overlapping areas during mosaicing (here mean).
so typing raster.list$fun = mean
add new element called "fun" list, contains r-base function mean()
. used input mosaic function invoked do.call.
for more information please pages ?do.call
, ?mosaic
. hope helps.
Comments
Post a Comment