title: Apply a function from package "BioQC" in Rcpp
body: <p>In my previous question <a href="https://stackoverflow.com/questions/42292546/rcpp-programming-efficiency">My previous question which may be relevant to this problem</a>, I called <code>wilcox.test</code> in Rcpp. </p>
  
  <p>(<code>wilcox.test</code> is a default method in R and it was written in R, the source code can be found here: <a href="https://github.com/SurajGupta/r-source/blob/master/src/library/stats/R/wilcox.test.R" rel="nofollow noreferrer">Source code of wilcox.test in R</a>)</p>
  
  <p>The speed of the code is very slow because of <code>Embedding R code in C++</code>. I was suggested to write <code>wilcox.test</code> in Rcpp from the ground up.</p>
  
  <p>Currently, I found an R package <code>BioQC</code> which was written in Rcpp and it offered a more efficient way for doing Wilcoxon-Mann-Whitney rank sum test.</p>
  
  <p>I am curious that since <code>BioQC</code> was written in Rcpp, is it possible to transfer their source code into my Rcpp code? What kind of file should I look into?</p>
  
  <p>Here is their souce code which is relevant to Wilcoxon-Mann-Whitney rank sum test:<a href="https://github.com/Accio/BioQC/blob/master/src/wmw_test.c" rel="nofollow noreferrer">BioQC source code</a></p>
  
  <p>I am interested in the first function <strong>"wmw_test_stat"</strong>, how should I transfer it into my Rcpp file?(I guess that just copy that code into Rcpp is obviously not enough).</p>
  
  <p>Thank you for your help!</p>