[Rcpp-devel] Correlation in ArmadilloRcpp with missing values (nan)

Dirk Eddelbuettel edd at debian.org
Tue Oct 9 19:55:13 CEST 2012

On 9 October 2012 at 19:07, mateusz.kaduk at gmail.com wrote:
| Can you provide an example how to convert Armadillo colvec to uvec vector which
| I assume works as selector for rows?

You may need to loop (or use STL iterators) to fill the uvec position by
position.  Then use the subset, and proceed with your correlation
calculation.  I don't think there is a shortcut.


Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com  

More information about the Rcpp-devel mailing list