<div dir="ltr"><div class="gmail_extra">Hi Romain,</div><div class="gmail_extra"><br></div><div class="gmail_extra">Originally I hoped to be able to "get around" writing various functions in C++, by having Rcpp wrap an R function. But after Krzysztof explanation, and yours, I realized it would not offer any gain (due to the copying of objects all around).</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">In which case, I am back to the original plan of finding the functions I'll need and write them in Rcpp.</div><div class="gmail_extra">The most basic example of such a function is for getting and setting the labels of a dendrogram.</div>

<div class="gmail_extra"><span style="color:rgb(221,17,68);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:18px;white-space:pre">labels.dendrogram </span>is in base R, and I already have the function: <span style="color:rgb(221,17,68);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:18px;white-space:pre">"labels<-.dendrogram"</span></div>

<div class="gmail_extra">In: <a href="https://github.com/talgalili/dendextend/blob/master/R/labels.r">https://github.com/talgalili/dendextend/blob/master/R/labels.r</a></div><div class="gmail_extra">But these are SLOW functions.</div>

<div class="gmail_extra">So my hope is to write them in Rcpp - them, and some other functions I'm playing with. Since ALL of these functions have the basic same structure, so once I'll have one nailed down, the rest will be easy.</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">If you or anyone else wishes to help write that first function, that would be great. Otherwise, I'll probably get to it once I finish uploading, tidying, and documenting all of my other functions (I have quite a bunch of them in the pipeline, before I'll get to optimizing them through Rcpp).</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">Thank you (and the rest) for the answers, I am learning a lot,</div><div class="gmail_extra">Tal</div><div class="gmail_extra"><br></div><div class="gmail_extra">

<br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div>
<div class="gmail_extra">
<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jul 27, 2013 at 1:52 PM, Romain Francois <span dir="ltr"><<a href="mailto:romain@r-enthusiasts.com" target="_blank">romain@r-enthusiasts.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div id=":5g0" style="overflow:hidden">C++ function that would start by creating a clone of your list, using clone<List>.<br>


- from this call a C++ function to recurse.<br>
- for the actua</div></blockquote></div><br><br><br clear="all"><div><div dir="ltr"><br>----------------Contact Details:-------------------------------------------------------<br>Contact me: <a href="mailto:Tal.Galili@gmail.com" target="_blank">Tal.Galili@gmail.com</a> |  <br>

Read me: <a href="http://www.talgalili.com" target="_blank">www.talgalili.com</a> (Hebrew) | <a href="http://www.biostatistics.co.il" target="_blank">www.biostatistics.co.il</a> (Hebrew) | <a href="http://www.r-statistics.com" target="_blank">www.r-statistics.com</a> (English)<br>

----------------------------------------------------------------------------------------------<br><br></div></div>
</div></div>