Retrieving date ranges with the r platform Using r if I have a data frame that contains dates and temperatures.  

I would like to pull out all temperatures for January how would I go about 

phrasing this.  I've tried may ways such as 

louisville_weather &lt;- filter(louisville_weather$DATE &lt;= 2013-01-31)
If louisville_weather$DATE is formatted as POSIXct, the month can be extracted, thanks @RockScience, with

lvmonth &lt;- format(louisville_weather$DATE, "%m")


It's a character variable.  So, filtering

louisville_weather &lt;- louisville_weather[lvmonth == "01", ]


should extract your weather for January.

Hope you'll find it cold enough to balance the warmth of datascience.SX !