Old C code converting to R -


I have a code for a numeric program that was originally coded in C-C 2008. I am a novice user for R, and want to change this code in R Is this the proper use of the RCPP package? Yes, it is in the form of C ++ (usually, narrow and most irrelevant exceptions) a superset of C .

And RCAPP supports those types of atomic types that you are using.

  double * pvec, int nvec, ...  

To better describe a vector I will still comment on changing things

  std :: vector & lt; Double & gt; Vec  

or of course

  RCPP :: numeric vector VC  

But you should have some difficulty.

The RCPP is not untrained and lets you use different C and C ++ standards for the -std = c99 preference for yourself.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -