[R-SIG-Finance] quantmod: get date column

J Ryan jeff.a.ryan at gmail.com
Fri Dec 11 05:14:54 CET 2009


There is no date column in most time series classes.

There is a wealth of carefully written documentation on xts and zoo  
that could be read to find the answer.

Searching this list archive would likely show you an answer too.

?xts
?index

HTH
Jeff

Jeffrey A. Ryan
jeffrey.ryan at insightalgo.com

ia: insight algorithmics
www.insightalgo.com

On Dec 10, 2009, at 9:28 PM, km <krish.maheswaran at gmail.com> wrote:

>
> Hi All:
>
> Is it possible to extract the date column from an xts object? For  
> example:
>
> library(quantmod)
> getSymbols("F")
>
> a <- head(F)
>
> a
>
>           F.Open F.High F.Low F.Close F.Volume F.Adjusted
> 2007-01-03   7.56   7.67  7.44    7.51 78652200       7.51
> 2007-01-04   7.56   7.72  7.43    7.70 63454900       7.70
> 2007-01-05   7.72   7.75  7.57    7.62 40562100       7.62
> 2007-01-08   7.63   7.75  7.62    7.73 48938500       7.73
> 2007-01-09   7.75   7.86  7.73    7.79 56732200       7.79
> 2007-01-10   7.79   7.79  7.67    7.73 42397100       7.73
>
> I want to extract the date column only and assign it to a new  
> variable.
>
>
> Thanks in advance,
> Krish
>
> -- 
> View this message in context: http://n4.nabble.com/quantmod-get-date-column-tp960769p960769.html
> Sent from the Rmetrics mailing list archive at Nabble.com.
>
>    [[alternative HTML version deleted]]
>
> _______________________________________________
> R-SIG-Finance at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only.
> -- If you want to post, subscribe first.



More information about the R-SIG-Finance mailing list