Wednesday, March 12, 2014

A Hack to Create Matrices in R, Matlab style!!

The Matlab syntax for creating matrices is pretty and convenient. Its R-counterpart is functional but not as pretty, plus the default is to specify the values column wise. Using meta-programming we can hack together a function that allows us to create matrices in a similar way as in Matlab. Read more at:

No comments:

Post a Comment