I'm very new to R. I have a rather large data frame on trades and need to sort out the ones that occurred on the 3rd fridays only (for now).
What would be the best way of doing it? Thank you in advance.
Below is a small sample
symbol t_date exchange price hv10 hv20
AA 4/25/2011 NYSE 16.89 0.3797 0.3024
AA 4/26/2011 NYSE 17.031 0.3859 0.3022
AA 4/27/2011 NYSE 17.18 0.2141 0.2991
AA 4/28/2011 NYSE 17.09 0.209 0.2974
AA 4/29/2011 NYSE 17 0.2129 0.2975
AA 5/2/2011 NYSE 17.22 0.2169 0.2999
AA 5/3/2011 NYSE 17.67 0.1768 0.3139
data_set[t_date == getNthDayOfWeek(third, Fri, Apr, 2011), ]