I have a huge vector like this:
12/06/2000 15/07/2001 17/01/2002 25/03/2005 22/05/2005
17/01/2006 13/03/2006 05/02/2007 12/02/2008
4814 Levels: 01/01/2000 01/01/2001 01/01/2002 01/01/2003 01/01/2004 01/01/2005 ...
Can I subset the vector on different periods using the levels provided to me? So for example if I choose 01/01/2000 until 31/01/2000 R will give me only observations pertaining to the year 2000.
Little caveat to anyone reading this: as.Date(levels(a), "%d/%m/%Y") gives u the date according to the format I provided.