[R] Regex in an IF statement?

Jim Hargreaves james at ipec.co.uk
Fri Jul 23 16:18:36 CEST 2010


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



More information about the R-help mailing list