Re: [Rcpp-devel] Getting names

2014-03-25 Thread David Edwards
Super, thanks for this Regards David From: Søren Højsgaard [mailto:[email protected]] Sent: 25. marts 2014 11:03 To: David Edwards; '[email protected]' Subject: RE: Getting names Something like this? x <- c(a=1, b=2) f <- cppFunction("CharacterVector foo(NumericVector x){re

Re: [Rcpp-devel] Getting names

2014-03-25 Thread Søren Højsgaard
Something like this? x <- c(a=1, b=2) f <- cppFunction("CharacterVector foo(NumericVector x){return x.names();}") > f(x) [1] "a" "b" Søren From: [email protected] [mailto:[email protected]] On Behalf Of David Edwards Sent: 25. marts 20