magic/ 0000755 0001762 0000144 00000000000 14200603137 011326 5 ustar ligges users magic/NAMESPACE 0000644 0001762 0000144 00000000463 14010105251 012541 0 ustar ligges users exportPattern("^[[:alpha:]]+")
exportPattern("%eq%")
exportPattern("%ne%")
exportPattern("%gt%")
exportPattern("%ge%")
exportPattern("%lt%")
exportPattern("%le%")
import("abind")
importFrom("graphics", "lines", "par", "plot", "points", "text")
importFrom("stats", "runif")
importFrom("utils", "combn")
magic/README.md 0000644 0001762 0000144 00000003360 14177342723 012625 0 ustar ligges users Manipulation of high-dimensional arrays in R with the magic package
================
[](https://CRAN.R-project.org/package=magic)
[](https://cran.r-project.org/package=magic)
# Overview
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.
# Installation
You can install the released version of `magic` from
[CRAN](https://CRAN.R-project.org) with:
``` r
# install.packages("magic") # uncomment this to install the package
library("magic")
```
# Package highlights
- Function `adiag()` binds arbitrarily-dimensioned arrays
corner-to-corner
- Function `apad()` pads arbitrarily-dimensioned arrays
- Function `apldrop()` is a replacement for APL’s drop
- Function `aplus()` superimposes two arrays of different dimensions
and returns the sum of overlapping elements
- Function `arev()` is a multidimensional generalization of `rev()`
- Function `arot()` is a generalization of matlab’s `rotdim`
- Function `fnsd()` returns the first nonsingleton dimension of an
arbitrary dimensioned array
- Function `ashift()` shifts the origin of arbitrary dimensioned
arrays
Much of the package functionality is vectorised in array dimension.
# Further information
For more detail, see the package vignette
`vignette("magic")`
magic/data/ 0000755 0001762 0000144 00000000000 14010105251 012230 5 ustar ligges users magic/data/perfectcube6.rda 0000644 0001762 0000144 00000001071 14200425030 015275 0 ustar ligges users ]jai-*.\pQDDDD٦3&M)"Rz)^^W ~BUjlEhf'_gJSLte«/y|M$v},>~=z]>\?ПoS~JW><¦zF7wW=+_ӿ~&}2w
̏'Go;5r{s7c{4sX}9qV_E_að}#{&4Cy{>7)v{ޫKg
Bo]:6goؽe
tW~#
_
;=:cG9a/$k}傗wؑ__Ч>0/NnYa/]z%'jNSLWöwO?;Uܾ!gIVw/G2WpY~~BCN=W>~{.q.N>K& magic/data/magiccubes.rda 0000644 0001762 0000144 00000000407 14200425030 015024 0 ustar ligges users BZh91AY&SY sLLUU @>
@ FF=AC 2 "Hh 4d F6H)YR-
- OFŐ
i<؞*D`X%Vf4rHV`a˝ќt`u`v[.}jtLaX4ӅGm5 n
.."څVBЌN0펓\*
{*G2+# %T Uc :^G_L+"(Hih magic/data/cube2.rda 0000644 0001762 0000144 00000000346 14200425030 013724 0 ustar ligges users ]Kk@Fob*.\pQjflcʵڅqb109sp!Ϭ2"&sOҖacr}>c!%8uzK<'yW~}8R| 9§sp_`/guaHCG^t>7zܻ9!Fg7L_ magic/data/perfectcube5.rda 0000644 0001762 0000144 00000000564 14200425030 015302 0 ustar ligges users ]JPFoZT\pBDDDDMtmIDVp!R|$@5XHO76|. !4g4e孮ɿła:yMmYfƪG3e6RQ?1tsa ˜ׄP!'xMO~=ǰN>UsyCgoW#?{;CM.=G5"Lx̞kw>>}s<[xΗW`@}̾]"o!s}!q|[%/ɯ= oM9;q>:ރ
E}oS/]_Ws0I}OK[yg)N magic/data/Ollerenshaw.rda 0000644 0001762 0000144 00000000622 14200425030 015204 0 ustar ligges users ]NPF/Bq.\c1(#EF[(JH Ѕ[GQx'0ޏMI9)!D\$cqOD_#&b>Bk2_[ZFF[]FSbn}w!.߃
y50vu
Oa~xM;>p"\9X'Wx+ח&\.ns=
9' Z:9W/x9M(mrX
W~>SmE+x}_C\Unmx3RS%1{ 3' magic/data/hendricks.rda 0000644 0001762 0000144 00000001731 14200425030 014675 0 ustar ligges users BZh91AY&SY sDDUU @ @ @ @ @ @ @P@
=MԚ~PީIMCMSj=@4SLFǤʟTSz=Ph0F1h4~*TU R$T *RFʏ 2C# @
e$I$I;4p*Y UUB!Bdq4S(QMNSRI$I$I$I$I$I)n:$h fg= 33ə{>.)廻̘-Sb
$F1ƜWuYfftT!AZ
A
,IH>I'$x !BF
cImq)Ӧ
R%)JS0VjΊ(Ŏ6lwXo;=vڏvݹv MfkjlޘHC I6lJI2@ ^H!ް1^_^ٌi"$=:')DDDDFѹv˦0ΥV"""#,iH,M4QzpAEN9*Ar4MiM4i9swF1yAI"tz`(((((((((((,c ""
(@PP((
D u],U׃-fhI<ρͭj|(c162I/1̓$3Y%)$Ԇ [!~m·c%Yc6YekZ8 ' n>Y!BRS)JS.\E)JRk[B ffffDENV 5oUUUUUUUU͈cZm@ kZTaq0iՖes9s<iH
magic/data/Frankenstein.rda 0000644 0001762 0000144 00000001277 14200425030 015357 0 ustar ligges users BZh91AY&SYT