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.
To leave a comment
for the author, please follow the link and comment on their blog: Shifting sands
offers daily e-mail updates
news and tutorials
on topics such as: Data science
, Big Data, R jobs
, visualization (ggplot2
), programming (RStudio
, Web Scraping
) statistics (regression
, time series
) and more...
If you got this far, why not subscribe for updates
from the site? Choose your flavor: e-mail
, or facebook