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:

http://www.r-bloggers.com/a-hack-to-create-matrices-in-r-matlab-style/

No comments:

Post a Comment