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
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