On 09.04.2012 07:16, arunkumar1111 wrote:
HI

I want to create a dummy variable for a dataset which has various dates Eg
I've one year data. The user can choose any date range

startdate : 2012-01-01
enddate: 2012-02-01


dummy <- date >= startdate & date <= enddate

Uwe Ligges


startdate: 2012-06-01
enddate=2012-07-01

the columns of dataset= X ,Y ,date


Thanks and re

-----
Thanks in Advance
         Arun
--
View this message in context: 
http://r.789695.n4.nabble.com/Creating-a-dummy-variable-tp4542150p4542150.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to