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
(http://gallery.rcpp.org/articles/accessing-xts-api/), it provides the
following error…
Error in
dyn.load("/var/folders/cj/d05h2g2938q7yb5rhp9rwx800000gn/T//RtmpjfmSg9/sourcecpp_157729b6a1bf/sourceCpp_33663.so")
:
unable to load shared object
'/var/folders/cj/d05h2g2938q7yb5rhp9rwx800000gn/T//RtmpjfmSg9/sourcecpp_157729b6a1bf/sourceCpp_33663.so':
dlopen(/var/folders/cj/d05h2g2938q7yb5rhp9rwx800000gn/T//RtmpjfmSg9/sourcecpp_157729b6a1bf/sourceCpp_33663.so,
6): Symbol not found:
__ZNK4Rcpp7RObject4attrERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE
Referenced from:
/var/folders/cj/d05h2g2938q7yb5rhp9rwx800000gn/T//RtmpjfmSg9/sourcecpp_157729b6a1bf/sourceCpp_33663.so
Expected in: flat namespace
in
/var/folders/cj/d05h2g2938q7yb5rhp9rwx800000gn/T//RtmpjfmSg9/sourcecpp_157729b6a1bf/sourceCpp_33663.so
Does anybody else get this?
On 6 Feb 2014, at 13:29, Hideyoshi Maeda <[email protected]> wrote:
> 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.
>
> any help as always would be greatly appreciated.
>
> Thanks
>
> HLM
>
> On 6 Feb 2014, at 13:15, Darren Cook <[email protected]> wrote:
>
>>> The closest I found for some help online was found here
>>> (http://gallery.rcpp.org/articles/accessing-xts-api/) but that seems
>>> to only give xts outputs rather than taking in xts inputs.
>>
>> I think the key point being shown there is that an xts object is just a
>> NumericMatrix with a few attributes attached. (Or a NumericVector if it
>> is a single-column xts object.)
>>
>> If you've never poked around in xts internals this is probably going to
>> be a bit painful ;-)
>>
>> Darren
>>
>>
>>
>> --
>> Darren Cook, Software Researcher/Developer
>>
>> http://dcook.org/work/ (About me and my work)
>> http://dcook.org/blogs.html (My blogs and articles)
>> _______________________________________________
>> Rcpp-devel mailing list
>> [email protected]
>> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
>
_______________________________________________
Rcpp-devel mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel