[R] How to assign time series to a vector with one leap year
smartpink111 at yahoo.com
Wed Jan 23 00:15:50 CET 2013
You can check this link:
Also, this may help you:
1 parsed with %Y-%m-%d
# "2008-02-29 UTC"
----- Original Message -----
From: Janesh Devkota <janesh.devkota at gmail.com>
To: r-help at r-project.org
Sent: Tuesday, January 22, 2013 2:46 PM
Subject: [R] How to assign time series to a vector with one leap year
I am trying to do the time series analysis in R and I want to assign a
vector as a time series. The data I provided is hourly. The data is from
Jan 1 2008 to Dec 31 2009. How can I assign the data such that the first
year is leap year and second is not ?
airtemp <- read.csv("airtemp.csv",header=T,sep="")
aw <- ts(airtemp,start=2008,frequency=8784,end=2009)
I assigned frequency as 8784 because 2008 year will have 8784 hourly data
points and 2009 has 8760 data points. The total data points are 17544
The data can be found on
I apologize if this is very trivial to some of you.
[[alternative HTML version deleted]]
R-help at r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
More information about the R-help