[R-SIG-Finance] Properly making a xts object from csv file

Colton Smith coltonsmith321 at gmail.com
Tue Nov 15 19:50:28 CET 2016


Hello,

I'm currently wokring with a csv file that looks like this:
[image: Inline image 1]
I'm trying to make it an xts object so I can use it for backtesting. If I
detach dplyr, errors happen on the stock() line and if I have dplyr
attached errors happen initPortf()/initOrders().
[image: Inline image 1]
I'm aware of the frustrating interactions between dplyr and finance
packages. I assume there is a proper way to go about this without using
dplyr. If anybody could link me to an example or explain what I need to
use, that'd be great!

Thanks,
Colton Smith
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://stat.ethz.ch/pipermail/r-sig-finance/attachments/20161115/ade1a1d1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 21163 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-finance/attachments/20161115/ade1a1d1/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 69809 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-finance/attachments/20161115/ade1a1d1/attachment-0001.png>


More information about the R-SIG-Finance mailing list