Question Details

No question body available.

Tags

r

Answers (1)

Accepted Answer Available
Accepted Answer
July 8, 2026 Score: 4 Rep: 274,621 Quality: Expert Completeness: 60%

Convert a, b and x to Date class and sort b since our code will require that. This gives A, B and X. Then use findInterval to perform the search. At the end we check that the result is as expected.

a