<div dir="ltr"><div>Thanks for your suggestion Dirk! But it may be beyond my abilities. I may have to learn more than I anticipated on this one.<br><br></div>Brian<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 27, 2018 at 2:30 PM, Dirk Eddelbuettel <span dir="ltr"><<a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
On 27 February 2018 at 12:43, brian knaus wrote:<br>
| I have an Rcpp function that I would like to speed up, so RcppParallel<br>
| seemed like a solution. The issue I'm having is that my data is not<br>
| numeric. I currently use an Rcpp::StringMatrix as input and<br>
| Rcpp::CharacterMatrix as output from the function. The examples at the Rcpp<br>
| Gallery all seem to consist of RMatrix<double> or RVector<double>. I was<br>
| able to find the below SO post which seems to ask my question but does not<br>
| appear to have resolved successfully.<br>
|<br>
| <a href="https://stackoverflow.com/questions/29105531/rcppparallel-converting-charactermatrix-to-rmatrixt/29115437" rel="noreferrer" target="_blank">https://stackoverflow.com/<wbr>questions/29105531/<wbr>rcppparallel-converting-<wbr>charactermatrix-to-rmatrixt/<wbr>29115437</a><br>
|<br>
| Is there a thread safe non-numeric data structure that can be used with<br>
| RcppParallel?<br>
<br>
</span>You may have to craft a container similar to RMatrix:<br>
<a href="https://github.com/RcppCore/RcppParallel/blob/master/inst/include/RcppParallel/RMatrix.h" rel="noreferrer" target="_blank">https://github.com/RcppCore/<wbr>RcppParallel/blob/master/inst/<wbr>include/RcppParallel/RMatrix.h</a><br>
<span class="HOEnZb"><font color="#888888"><br>
Dirk<br>
<br>
--<br>
<a href="http://dirk.eddelbuettel.com" rel="noreferrer" target="_blank">http://dirk.eddelbuettel.com</a> | @eddelbuettel | <a href="mailto:edd@debian.org">edd@debian.org</a><br>
</font></span></blockquote></div><br></div>