Skip to content

multiApply

Apply Functions to Multiple Multidimensional Arrays or Vectors

v2.1.5 · Sep 9, 2025 · GPL-3

Description

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 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.

Downloads

726

Last 30 days

5030th

2.3K

Last 90 days

7.3K

Last year

Trend: -8.6% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (6)

Dependency Network

Dependencies Reverse dependencies doParallel foreach plyr CSDownscale CSIndicators CSTools ClimProjDiags s2dv startR multiApply

Version History

new 2.1.5 Mar 10, 2026
updated 2.1.5 ← 2.1.4 diff Sep 8, 2025
updated 2.1.4 ← 2.1.3 diff Mar 27, 2023
updated 2.1.3 ← 2.1.2 diff Feb 1, 2021
updated 2.1.2 ← 2.1.1 diff Jan 20, 2021
updated 2.1.1 ← 2.0.1 diff Sep 2, 2019
updated 2.0.1 ← 1.0.0 diff Nov 23, 2018
updated 1.0.0 ← 0.0.1 diff Feb 4, 2018
new 0.0.1 Jul 17, 2017