[R] Creating a dummy variable
Uwe Ligges
ligges at statistik.tu-dortmund.de
Mon Apr 9 16:57:58 CEST 2012
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 at 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.
More information about the R-help
mailing list