From wgrundlingh @ending from gm@il@com  Fri Jun  8 22:02:16 2018
From: wgrundlingh @ending from gm@il@com (Werner Grundlingh)
Date: Fri, 8 Jun 2018 13:02:16 -0700
Subject: [Rd] Date class shows Inf as NA; this confuses the use of is.na()
Message-ID: <CAGg4omXVJj3vnK1+Z4zaHeuQ5Q+GjsOcvY22D13-okpjzWCsuA@mail.gmail.com>

In the following example, the date class shows Inf as NA

> as_date(Inf, origin = '1970-01-01')
[1] NA

This is misleading as is.na() reports incorrectly

> is.na(as_date(Inf, origin = '1970-01-01'))
[1] FALSE

The correct approach here would probably to have an Inf (and -Inf)
*displayed* rather than NA.

	[[alternative HTML version deleted]]



[Rd] Date class shows Inf as NA; this confuses the use of is.na()
Werner Grundlingh