Thats works perfectly, thanks a lot,
Mark
On Thu, Dec 13, 2012 at 11:34 AM, arun wrote:
> Hi,
> Try this:
> seq1<-seq(from=as.POSIXct("2012-05-30
> 18:30:00",tz="UTC"),to=as.POSIXct("2012-05-31 02:30:00",tz="UTC"),by="1
> hour")
> seq2<-seq(from=as.POSIXct("2012-05-31
> 00:30:00",tz="UTC"),to=as
,seq3)
split(Series1,rep(1:3,each=9))
#or individually if it is a small dataset
Series1[1:9]
Series1[10:18]
etc.
A.K.
- Original Message -
From: m p
To: r-h...@stat.math.ethz.ch
Cc:
Sent: Thursday, December 13, 2012 11:52 AM
Subject: [R] subsetting time series
Hello,
my series of dates look like
On Dec 13, 2012, at 8:52 AM, m p wrote:
Hello,
my series of dates look like
[1] "2012-05-30 18:30:00 UTC" "2012-05-30 19:30:00 UTC"
[3] "2012-05-30 20:30:00 UTC" "2012-05-30 21:30:00 UTC"
[5] "2012-05-30 22:30:00 UTC" "2012-05-30 23:30:00 UTC"
[7] "2012-05-31 00:30:00 UTC" "2012-05-31 01:3
Is this a one off or not? Why not do it manually? If you need to write a
function some example data would be helpful.
On Thu, Dec 13, 2012 at 10:52 AM, m p wrote:
> Hello,
> my series of dates look like
>
> [1] "2012-05-30 18:30:00 UTC" "2012-05-30 19:30:00 UTC"
> [3] "2012-05-30 20:30:00
Hello,
my series of dates look like
[1] "2012-05-30 18:30:00 UTC" "2012-05-30 19:30:00 UTC"
[3] "2012-05-30 20:30:00 UTC" "2012-05-30 21:30:00 UTC"
[5] "2012-05-30 22:30:00 UTC" "2012-05-30 23:30:00 UTC"
[7] "2012-05-31 00:30:00 UTC" "2012-05-31 01:30:00 UTC"
[9] "2012-05-31 02:30:00 UTC
5 matches
Mail list logo