specifying claims from 1992-2002 for months April through septemebr

I have a data with unordered dates as follows:
2009-10-19, 2011-04-28, 2008-04-11, 2009-10-18, 2009-06-12, 2006-08-04,

With corresponding claims data as follows:

This is just a small part of the data, Now I want to specify the claims with dates from 1992-2002 for months April,May,June,July,August,September.

How can I do that using R
I have tried the following

df <- data.frame( date=c(ON$DOLYYYY), claim=c(ON$NBRCL_WATER) )

df[df$date>1992-04-01 & df$date<2002-09-30, ]

but I still have the months other than the specified ones, Can anyone help me ??
Last edited:



You gotta show people you're trying. You're back to the same old behaviors you started with; with posting code and questions. Generally, R questions get answered within minutes here but you're go untouched. THe reason is that you have not shown you are trying to grow. We know this because you're back to posting code without code tags and not giving us a sample of the desired output.

Go back through every question you've ever asked starting here: http://www.talkstats.com/showthread.php/47685-R-Program

And read what people are asking for you to do with your posts (code, sample output and clarity of questions). IF you were to show at least some attempts are doing what we've asked you so that you'll grow you're 1000% more likely to get help.