In particular,
library(zoo)
z <- zoo(x$alloc_gb, x$month)
plot(z)
See the three zoo vignettes
vignette(package = zoo) # to list them
vignette("zoo") # to show first one
and the help files
library(help = zoo)
?zoo
On Wed, Apr 22, 2009 at 1:07 PM, stephen sefick wrote:
> look at the zoo packag
look at the zoo package where there are quite a few functions to help with this.
Stephen Sefick
On Wed, Apr 22, 2009 at 11:09 AM, Lane, Jim wrote:
> Hi, All
>
> I have a data frame like this.
>
>> names(x)
> [1] "month" "alloc_gb"
>
> One of the columns contains the dates I want to use:
>
>>
Hi, All
I have a data frame like this.
> names(x)
[1] "month""alloc_gb"
One of the columns contains the dates I want to use:
> data.class(x$month)
[1] "yearmon"
I would like to make a time series object out of this. However the ts
function seems to require me to spell out the starting date
3 matches
Mail list logo