<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Furthermore, when trying to compile the function createXts(), by coping and pasting it into a file, and then Rcpp::sourceCpp(‘file.cpp’), given in the link (<a href="http://gallery.rcpp.org/articles/accessing-xts-api/">http://gallery.rcpp.org/articles/accessing-xts-api/</a>), it provides the following error…<div><br></div><div><div>Error in dyn.load("/var/folders/cj/d05h2g2938q7yb5rhp9rwx800000gn/T//RtmpjfmSg9/sourcecpp_157729b6a1bf/sourceCpp_33663.so") : </div><div>  unable to load shared object '/var/folders/cj/d05h2g2938q7yb5rhp9rwx800000gn/T//RtmpjfmSg9/sourcecpp_157729b6a1bf/sourceCpp_33663.so':</div><div>  dlopen(/var/folders/cj/d05h2g2938q7yb5rhp9rwx800000gn/T//RtmpjfmSg9/sourcecpp_157729b6a1bf/sourceCpp_33663.so, 6): Symbol not found: __ZNK4Rcpp7RObject4attrERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE</div><div>  Referenced from: /var/folders/cj/d05h2g2938q7yb5rhp9rwx800000gn/T//RtmpjfmSg9/sourcecpp_157729b6a1bf/sourceCpp_33663.so</div><div>  Expected in: flat namespace</div><div> in /var/folders/cj/d05h2g2938q7yb5rhp9rwx800000gn/T//RtmpjfmSg9/sourcecpp_157729b6a1bf/sourceCpp_33663.so</div><div><br></div><div>Does anybody else get this?</div><div><br></div><div><div>On 6 Feb 2014, at 13:29, Hideyoshi Maeda <<a href="mailto:hideyoshi.maeda@gmail.com">hideyoshi.maeda@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">I was aware that an xts object is just a NumericMatrix with a few attributes and index attached, but was wondering if anybody could please give me a walkthrough example to show me how its done with some thing that has more than one column and also how one goes about subsetting columns of the xts object/matrix etc.<br><br>any help as always would be greatly appreciated.<br><br>Thanks<br><br>HLM<br><br>On 6 Feb 2014, at 13:15, Darren Cook <<a href="mailto:darren@dcook.org">darren@dcook.org</a>> wrote:<br><br><blockquote type="cite"><blockquote type="cite">The closest I found for some help online was found here<br>(<a href="http://gallery.rcpp.org/articles/accessing-xts-api/">http://gallery.rcpp.org/articles/accessing-xts-api/</a>) but that seems<br>to only give xts outputs rather than taking in xts inputs. <br></blockquote><br>I think the key point being shown there is that an xts object is just a<br>NumericMatrix with a few attributes attached.  (Or a NumericVector if it<br>is a single-column xts object.)<br><br>If you've never poked around in xts internals this is probably going to<br>be a bit painful ;-)<br><br>Darren<br><br><br><br>-- <br>Darren Cook, Software Researcher/Developer<br><br><a href="http://dcook.org/work/">http://dcook.org/work/</a> (About me and my work)<br><a href="http://dcook.org/blogs.html">http://dcook.org/blogs.html</a> (My blogs and articles)<br>_______________________________________________<br>Rcpp-devel mailing list<br><a href="mailto:Rcpp-devel@lists.r-forge.r-project.org">Rcpp-devel@lists.r-forge.r-project.org</a><br>https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel<br></blockquote><br></blockquote></div><br></div></body></html>