[R] Basic Quantmod help needed

R. Michael Weylandt michael.weylandt at gmail.com
Sat Mar 17 05:26:52 CET 2012


Is it a timeSeries object or a ts object -- those are different
things... either way, you probably need to convert it to an xts
object, this can be done pretty easily with as.xts()

Michael

On Fri, Mar 16, 2012 at 6:22 PM, suckerpunch <digglerdirk123 at gmail.com> wrote:
> Hi,
>
> I'm new to R and Quantmod. I'm trying to make use of Quantmod's features
> however I'm failing at the first hurdle and I'm finding most R documentation
> a little cryptic.
>
> I have some minutely data for the same day for a stock in an existing
> timeSeries (ts) object. For example:
>
> Date              time    price   volume
> 2012-03-12 08:01   45.01   10000
> 2012-03-12 08:02  45.09     20000
>
>
> Its not clear to me how I would then get this into the Quantmod world.
>
> Can some one please point me in the right direction ?
>
> Any help appreciated.
> SP
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Basic-Quantmod-help-needed-tp4479513p4479513.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list