[This article was first published on Shifting sands
, and kindly contributed to R-bloggers
]. (You can report issue about the content on this page here
Want to share your content on R-bloggers? click here
if you have a blog, or here
if you don't.
I have been using RcppArmadillo more and more frequently, so thought I would make a cheatsheet/cookbook type reference that translates common R operations into equivalent arma code.
I have put them up on a github wiki page here.
The functions are all pretty basic and not particularly robust. In particular they do not do any bounds or sanity checking.
You might also enjoy the arma documentation, in particular the matlab/octave syntax conversion example.
There is also an excellent book Seamless R and C++ Integration with Rcpp
Any corrections or additions are most welcome.
If you got this far, why not subscribe for updates
from the site? Choose your flavor: e-mail
, or facebook