Hi again
Here is the sample:
> yuk
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
2005 41.26 40.02 38.24 35.37 39.35 38.90 43.51 40.32 38.14 41.04 41.78 40.48
2006 40.55 42.15 42.30 39.93 38.12 35.79 34.71 34.29 36.27 37.33 37.97 40.16
2007 40.74 39.59 36.74 37.87 38.8
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 <[EMAIL PROTECTED]> wrote:
> Dear R gurus
>
> I would like to take a monthly time series and convert it to a data
> frame without los
Hi Edna,
Can you send a small subset of the data as an example and the
function call you used to read the data in originally? It might be
helpful in understanding why you're losing the "time element".
Jeff.
On Oct 1, 2007, at 12:27 AM, Edna Bell wrote:
> Dear R gurus
>
> I would like to ta
Dear R gurus
I would like to take a monthly time series and convert it to a data
frame without losing the tsp items, pleae
I've tried as.data.frame and data.frame but I get the series without
the time element.
Any suggestions, please?
tia
Edna Bell
4 matches
Mail list logo