<div dir="ltr"><p style="margin:0px 0px 1em;padding:0px;border:0px none;font-size:14px;vertical-align:baseline;background-color:rgb(255,255,255);clear:both;color:rgb(0,0,0);font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:17.8048px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
Is anyone aware of an R package that uses Rcpp and Boost.Geometry?</p><p style="margin:0px 0px 1em;padding:0px;border:0px none;font-size:14px;vertical-align:baseline;background-color:rgb(255,255,255);clear:both;color:rgb(0,0,0);font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:17.8048px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
I am looking for examples to learn from rather than asking many questions here.</p><p style="margin:0px 0px 1em;padding:0px;border:0px none;font-size:14px;vertical-align:baseline;background-color:rgb(255,255,255);clear:both;color:rgb(0,0,0);font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:17.8048px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<br>I am trying to write custom as<>() and wrap() converters for the most common input and output geometry types used in that library.<br><br></p><p style="margin:0px 0px 1em;padding:0px;border:0px none;font-size:14px;vertical-align:baseline;background-color:rgb(255,255,255);clear:both;color:rgb(0,0,0);font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:17.8048px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
An example of the use would be:<br>To use boost::geometry::convex_hull() to take in an n x 2 R matrix find the convex hull and return an m x 2 R matrix.  <br><br></p><p style="margin:0px 0px 1em;padding:0px;border:0px none;font-size:14px;vertical-align:baseline;background-color:rgb(255,255,255);clear:both;color:rgb(0,0,0);font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:17.8048px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
I realize there are many ways to find the convex hull of a set in R. I just used that as an example (and one where I can easily check my code)<br><br></p><p style="margin:0px 0px 1em;padding:0px;border:0px none;font-size:14px;vertical-align:baseline;background-color:rgb(255,255,255);clear:both;color:rgb(0,0,0);font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:17.8048px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
I have indeed looked at:<br><br><a href="http://gallery.rcpp.org/articles/custom-as-and-wrap-example/">http://gallery.rcpp.org/articles/custom-as-and-wrap-example/</a><br></p><p style="margin:0px 0px 1em;padding:0px;border:0px none;font-size:14px;vertical-align:baseline;background-color:rgb(255,255,255);clear:both;color:rgb(0,0,0);font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:17.8048px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
and <br></p><p style="margin:0px 0px 1em;padding:0px;border:0px none;font-size:14px;vertical-align:baseline;background-color:rgb(255,255,255);clear:both;color:rgb(0,0,0);font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:17.8048px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<a href="http://gallery.rcpp.org/articles/custom-as-and-wrap-example/">http://gallery.rcpp.org/articles/custom-as-and-wrap-example/</a><br><br></p><p style="margin:0px 0px 1em;padding:0px;border:0px none;font-size:14px;vertical-align:baseline;background-color:rgb(255,255,255);clear:both;color:rgb(0,0,0);font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:17.8048px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
But as I am primarily an R programer the Cpp knowledge needed to bride the gap between the Boost.Geometry documentation and the examples provided in each is just not there. So I thought I would ask if there was an existing package that used Boost.Geometry so I could see an example.<br>
</p><p style="margin:0px 0px 1em;padding:0px;border:0px none;font-size:14px;vertical-align:baseline;background-color:rgb(255,255,255);clear:both;color:rgb(0,0,0);font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:17.8048px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
Thanks for any help you can provide,</p><p style="margin:0px 0px 1em;padding:0px;border:0px none;font-size:14px;vertical-align:baseline;background-color:rgb(255,255,255);clear:both;color:rgb(0,0,0);font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:17.8048px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
Political Economist<br></p></div>