Re: [R] Creating a dummy variable

2012-04-09 Thread Uwe Ligges



On 09.04.2012 07:16, arunkumar 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.


[R] Creating a dummy variable

2012-04-08 Thread arunkumar1111
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

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.