Skip to content
Back to formatted view

Raw Message

Message-ID: <1337434486680-4630595.post@n4.nabble.com>
Date: 2012-05-19T13:34:46Z
From: Allen
Subject: Subset based on a date range

Hello, 

Can someone help me on how to make a subset of my dataframe using two dates.
This is what I have tried, but no data is being excluded in the new frame.

six_months<-subset(Two_years, vdate>2011-01-01|vdate<2011-07-01)

or all data is excluded

six_months<-subset(Two_years, vdate>2011-01-01&vdate<2011-07-01)
 

--
View this message in context: http://r.789695.n4.nabble.com/Subset-based-on-a-date-range-tp4630595.html
Sent from the R help mailing list archive at Nabble.com.