Hi,
I'm trying to check a column of dates and creating indicator variables showing
different time periods.
For example, if I were to do this in Excel I would have something like:
Year to Dec 2004=IF(AND(referral dateDATE(2005,1,1), OR($closure
dateDATE(2003,12,31), LEN($closure date) = 0)),
Dear Kevin,
Assuming that closure and referral are two columns in your df and you have
already converted them to date columns.
The following should work:
df$Dec04- ifelse(df$referral 2005-01-01 df$closure 2003-12-31 |
df$closure== , Yes, No)
if you are trying to account for the column
On Jul 10, 2010, at 9:29 AM, Wang, Kevin (SYD) wrote:
Hi,
I'm trying to check a column of dates and creating indicator
variables showing different time periods.
For example, if I were to do this in Excel I would have something
like:
Year to Dec 2004=IF(AND(referral dateDATE(2005,1,1),
On Jul 10, 2010, at 9:42 AM, nvanzuy...@gmail.com wrote:
Dear Kevin,
Assuming that closure and referral are two columns in your df and
you have
already converted them to date columns.
The following should work:
df$Dec04- ifelse(df$referral 2005-01-01 df$closure
2003-12-31 |
4 matches
Mail list logo