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 <petr.pi...@precheza.cz>: > > 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, by="unixtime", all=TRUE) > > Thanks, this is a good general answer indeed. See, I only need a > keyword (merge) to push me to the right track. In my particular case, I
I am not sure if it is the right track. It depends on my understanding (and this can be wrong) of your explanation. > need to cast my unixtime into number-of-minutes before merging it. It depends what unixtime is. At least str(df) can help. Regards Petr ______________________________________________ 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-guide.html and provide commented, minimal, self-contained, reproducible code.