I am trying to write a C++ function to be called from R and have never done
this before. I have done the following:
require(Rcpp)
require(inline)
src <- 'blahblahblah'
fun <- cxxfunction(signature(a="numeric",b="numeric"),src,plugin="Rcpp")
That last line generates the error message:
Error in co
Below I have written out some simplified data from my dataset. My goal is
to interpolate Price based on timestamp. Therefore the closer a Price is in
time to another price, the more like that price it will be. I want the
interpolations for each St and not across St (St is a factor with levels
A, B
New to R and having issues with loops. I am aware that I should use
vectorization whenever possible and use the apply functions, however,
sometimes a loop seems necessary.
I have a data set of 2 million rows and have tried run a couple of loops of
varying complexity to test efficiency. If I do a v
3 matches
Mail list logo