Include test data for function arguments

Added the year of 2011 and the name of the data
frame for testing purposes.
Create data subset based on input year

From the matched column that contains POSIXlt time
objects, use the lubridate ‘year’ on that indexed
column and return a subset based on the year
argument of the parent function.