?xts
xts will do what you want. as.xts or xts() are straightforward ways.
On Fri, Aug 6, 2010 at 5:11 PM, Serdar Akin <akin1876@gmail.com> wrote:
> Hi
>
> I want to create a TimeSeries object with already defined dates (in the
> first vector) so that all the data are coerced as a time series object with
> the dates as they are.
>
> Is there anyone that have an idea what to do?
>
> 2010-07-07 3.900833 3.176667 2.754167 2.045833 1.820833
> 2010-04-21 4.256667 3.356667 2.700000 1.820000 1.576667
> 2010-02-17 4.322500 3.450000 2.670000 1.792500 1.492500
> 2009-12-23 4.306667 3.426667 2.680000 1.851667 1.481667
> 2009-10-28 4.340000 3.425000 2.677500 2.170000 1.522500
> 2009-09-09 4.472500 3.410000 2.640000 2.170000 1.645000
>
> Serdar (MA)
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@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<http://www.r-project.org/posting-guide.html>
> and provide commented, minimal, self-contained, reproducible code.
>
[[alternative HTML version deleted]]