Skip to content

Indicator function for merged times (was: Re: Rr: For and if confusion)

2 messages · Gabor Grothendieck

#
Please start a new thread for a new topic and use a
meaningful subject for sake of the archives and
 everyone trying to follow.

Using your Int1, correcting your Int2 and using your
Y (which goes to Jul not Aug as per the comment):

library(zoo)
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
1992                               0   0   0   0   0
1993   0   0   1   1   1   1   1   1   1   1   1   1
1994   1   1   1   1   1   1   1   1   1   1   1   1
1995   1   1   1   1   1   1   1   1   1   1   1   1
1996   1   1   1   1   1   1   1   1   1   1   1   1
1997   1   1   1   1   1   1   1   1   1   1   1   1
1998   1   1   1   1   1   1   1   1   1   1   1   1
1999   1   1   1   1   1   1   1   1   0   0   0   0
2000   0   0   0   0   0   0   0   0   0   0   0   0
2001   0   0   0   0   0   0   0   0   0   0   0   0
2002   0   0   0   0   0   0   0

On Thu, Dec 18, 2008 at 7:43 AM, Matthieu Stigler
<matthieu.stigler at gmail.com> wrote:
#
My initial comment was wrong. I see that this is really
an answer rather than the question but it was confusing
because it started a new thread.  Please try to use the
same thread in answering the question.

On Thu, Dec 18, 2008 at 9:39 AM, Gabor Grothendieck
<ggrothendieck at gmail.com> wrote: