Re: [R] Am I working with regularly spaced time series?

2013-10-26 Thread Weiwu Zhang
2013/10/22 Gabor Grothendieck : > Also note that the zoo package has two classes: > > 1. zoo for irregularly spaced series > 2. zooreg for series with an underlying regularity but for which some > of the points are missing (which seems to be the situation under > discussion) > > The two classes are

[R] Am I working with regularly spaced time series?

2013-10-21 Thread Weiwu Zhang
My data is sampled once per minute. There are invalid samples, leaving a lot of holes in the samples, successful sample is around 80% of all minutes in a day. and during the last 4 months sampling, one month's data was stored on a harddisk that failed, leaving a month's gap in between. So am I wor

Re: [R] to match samples by minute

2013-08-16 Thread Weiwu Zhang
2013/8/16 PIKAL Petr : > It depends what unixtime is. At least str(df) can help. Thanks. Indeed following you suggestion I found it easier to use than summary() for debugging. Now I can properly handle POSIXct thanks to the help I got from this list a few weeks ago:) > I am not sure if it is the

Re: [R] to match samples by minute

2013-08-16 Thread Weiwu Zhang
2013/8/16 PIKAL Petr : > You will get only general answer without some example data. Se Posting Guide. Thanks. Yes I do expect general answer, because I feel this problem of "unmatched samples" is ubiquitious, only that I don't have a good Google keyword to dig myself. > df.m <- merge(df1, df2, b

Re: [R] how to retain dimension when selecting one row from a matrix?

2013-08-15 Thread Weiwu Zhang
2013/8/15 Berend Hasselman : > n[1,,drop=FALSE] > > Berend Thanks a lot, and I wasn't aware I can do ?`[` __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting