search for: special_date

Displaying 1 result from an estimated 1 matches for "special_date".

2012 Aug 19
2
merging and obtaining the nearest value
...would like to know if there is a short solution in R for this merging problem... Let say I have a dataset A as: TYPE DATE A 2 A 5 A 20 B 10 B 2 (there can be duplicates for the same type and date) and I have another dataset B as : TYPE Special_Date A 2 A 6 A 20 A 22 B 5 B 6 The question is : I would like to obtain the difference between the date of each observation in A and the closest special date in B with the same type. In case of ties I would take the latest da...