I am wondering how to create a subset of data in R based on a list of dates, rather than by a date range.
For example, I have the following data set data wh
data
The intersect() function (docs) will allow you to compare one data frame to another and return those records that are the same.
intersect()
To use, run the following:
breezedays <- intersect(data$date,breezedate) # returns into breezedays all records that are shared between data$date and breezedate