Jan de Leeuw | 20 Aug 08:51
Favicon
Gravatar

FYI: APL in R

http://idisk.mac.com/jdeleeuw-Public/utilities/apl/apl.R

Dedicated to the IBM 2741.

Implemented for general multidimensional arrays:

drop, take, reshape, shape, rank, select, generalized inner product,  
generalized
outer product, representation, base value, join, expand, reduce, scan,
member of, ravel, compress, tranpose, rotate

Basically, the APL-I part is complete, and after some testing
and clean-up this will be 1.0. In the code there is a small section
explaining the relation between aplTP(), the APL transpose
function, and the (less general but more natural) aperm() from R.

I may decide to add some extensions from APL-X, APL-2, J,
Sharpe APL, APL 2000, Dyalog APL, later on. In any case, the
current code adds a lot of array operations (and even matrix and vector
operations) to R.

Although this is all prefix and no infix, we could easily
recreate some of the infamous APL one-liners that nobody
can possibly understand or reproduce.

===============================================================
      Jan de Leeuw, 11667 Steinhoff Rd, Frazier Park, CA 93225
      home 661-245-1725 mobile 661-231-5416 work 310-825-9550
      .mac: jdeleeuw +++  aim: deleeuwjan +++ skype: j_deleeuw
===============================================================
(Continue reading)

Emmanuel Charpentier | 20 Aug 19:56
Favicon

Re: FYI: APL in R

Le mardi 19 août 2008 à 23:52 -0700, Jan de Leeuw a écrit :
> http://idisk.mac.com/jdeleeuw-Public/utilities/apl/apl.R

Thank you ! I was beginning to think I was the last of the dinosaurs...
ISTR that someone else on the list is also an (un)repentant APLer...

> Although this is all prefix and no infix, we could easily
> recreate some of the infamous APL one-liners that nobody
> can possibly understand or reproduce.

:-)!!! Having implemented a (primitive) stats package in APL, I know
what you mean... A liberal use of lamp was ... well, enlightening...

					Emmanuel Charpentier

______________________________________________
R-help <at> r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Gmane