Re: [Rcpp-devel] help with data.frame and numericvector

2022-04-27 Thread Dirk Eddelbuettel
On 27 April 2022 at 20:58, Roberto Spadim wrote: | Hello folks, | I'm converting some R functions to RCpp at | https://github.com/OVVO-Financial/NNS/ | | My problem is with a R "cast" function | |

[Rcpp-devel] help with data.frame and numericvector

2022-04-27 Thread Roberto Spadim
Hello folks, I'm converting some R functions to RCpp at https://github.com/OVVO-Financial/NNS/ My problem is with a R "cast" function https://github.com/OVVO-Financial/NNS/blob/d3f37c6f217a41ce15b31f7a840b6b1ad63e5f36/R/Partial_Moments.R#L20 basically this line: --- LPM <- function(degree,