Skip to content
Prev 13390 / 398503 Next

chron is.weekend() function

Hi Paul,

This is clearly a bug -- the argument needs to be coerced 
to a "dates" class argument, since the underlying algorithm relies 
on integer arithmetic (date+time objects are represented as
floating point numbers).

Thus you can use is.weekend(dates(mb.df$dtg)) as a workaround.  

(I'll send you a fix later on).
Paul Hewson wrote:

  
    
Message-ID: <20010907104406.D6103@jessie.research.bell-labs.com>
In-Reply-To: <839153510892D31199B000508B5ECDB50B1ED90A@cor-exg3.devon.gov.uk>; from PHewson@devon.gov.uk on Fri, Sep 07, 2001 at 09:38:07AM +0100