multiApply: Apply Functions to Multiple Multidimensional Arrays or Vectors

The base apply function and its variants, as well as the related functions in the 'plyr' package, typically apply user-defined functions to a single argument (or a list of vectorized arguments in the case of mapply). The 'multiApply' package extends this paradigm with its only function, Apply, which efficiently applies functions taking one or a list of multiple unidimensional or multidimensional numeric arrays (or combinations thereof) as input. The input arrays can have different numbers of dimensions as well as different dimension lengths, and the applied function can return one or a list of unidimensional or multidimensional arrays as output. This saves development time by preventing the R user from writing often error-prone and memory-inefficient loops dealing with multiple complex arrays. Also, a remarkable feature of Apply is the transparent use of multi-core through its parameter 'ncores'. In contrast to the base apply function, this package suggests the use of 'target dimensions' as opposite to the 'margins' for specifying the dimensions relevant to the function to be applied.

Version: 2.0.1
Depends: R (≥ 3.2.0)
Imports: doParallel, foreach, plyr
Suggests: testthat
Published: 2018-11-23
Author: BSC-CNS [aut, cph], Nicolau Manubens [aut], Alasdair Hunter [aut], Nuria Perez [cre]
Maintainer: Nuria Perez <nuria.perez at>
License: LGPL-3
NeedsCompilation: no
Materials: README
CRAN checks: multiApply results


Reference manual: multiApply.pdf
Package source: multiApply_2.0.1.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
OS X binaries: r-release: multiApply_2.0.1.tgz, r-oldrel: multiApply_2.0.1.tgz
Old sources: multiApply archive

Reverse dependencies:

Reverse imports: ClimProjDiags


Please use the canonical form to link to this page.