Skip to content
Prev 125685 / 398500 Next

convert time series to data.frame

Try this:

x <- ts(11:30, start = 2000, freq = 12)
data.frame(x = c(x), time = c(time(x)))

The time will be in years plus fraction of a year.
On 10/1/07, Edna Bell <edna.bell01 at gmail.com> wrote:
Message-ID: <971536df0709302138u3c710b4cjc350696fb6e5bf72@mail.gmail.com>
In-Reply-To: <2d1ebb110709302127x25b5c2f6u133e01ce2ff4dbc3@mail.gmail.com>