help("difftime") is probably what you want.
If not, please post a standalone example
Allan
On 23/07/10 15:18, Jim Hargreaves wrote:
Dear List
I have the POSIX timestamps of two events, A and B respectively. I
want an expression that tests if A occurs within 4 weeks of B.
Something like:
if (ts_A "is between" ts_B + 4(weeks) and ts_B - 4) ...
Can probably done by regex but the regex docu for R says nothing about
if statements.
Any help greatly appreciated,
Regards,
Jim Hargreaves
______________________________________________
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.
______________________________________________
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.