Manipulation of high-dimensional arrays in R with the magic package

Total Downloads CRAN_Status_Badge


The magic package implements functionality for manipulating high-dimensional arrays using efficient vectorised methods. The original application was high-dimensional magic hypercubes. This README shows some of the more useful functions in the package.


You can install the released version of magic from CRAN with:

# install.packages("magic")  # uncomment this to install the package

Package highlights

Much of the package functionality is vectorised in array dimension.

Further information

For more detail, see the package vignette