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] to match samples by minute

2013-08-16 Thread PIKAL Petr
-bounces@r- > project.org] On Behalf Of Zhang Weiwu > Sent: Thursday, August 15, 2013 6:31 PM > To: r-help@r-project.org > Subject: [R] to match samples by minute > > > Perhaps this is simple and common, but it took me quite a while to > admit I cannot solve i

Re: [R] to match samples by minute

2013-08-16 Thread PIKAL Petr
Hi > -Original Message- > From: Weiwu Zhang [mailto:zhangwe...@realss.com] > Sent: Friday, August 16, 2013 9:55 AM > To: PIKAL Petr > Cc: r-help@r-project.org > Subject: Re: [R] to match samples by minute > > 2013/8/16 PIKAL Petr : > > You will get on

[R] to match samples by minute

2013-08-15 Thread Zhang Weiwu
Perhaps this is simple and common, but it took me quite a while to admit I cannot solve it in a simple way. The data frame `df` has the following columns: unixtime, value, factor Now I need a matrix of: unixtime, value-difference-between-factor1-and-factor2 The naive solution is: