search for: wgrundlingh

Displaying 9 results from an estimated 9 matches for "wgrundlingh".

Did you mean: grundlingh
2018 Jun 08
2
Date class shows Inf as NA; this confuses the use of is.na()
Indeed. as_date is from lubridate, but the same holds for as.Date. The output and it's interpretation should be consistent, otherwise it leads to confusion when programming. I understand that the difference exists after asking a question on Stack Overflow: https://stackoverflow.com/q/50766089/914686 This understanding is never mentioned in the documentation - that an Inf date is actually
2018 Jun 11
2
Date class shows Inf as NA; this confuses the use of is.na()
...eas, there is a > > possibility of breaking code and it should be investigated a bit > further > > imho. > > Cheers > > Joris > > > > > > > > > > On Fri, Jun 8, 2018 at 11:21 PM, Werner Grundlingh < > wgrundlingh at gmail.com> > > wrote: > > > >> Indeed. as_date is from lubridate, but the same holds for as.Date. > >> > >> The output and it's interpretation should be consistent, otherwise > it > >> leads > >> to co...
2018 Jun 09
4
Date class shows Inf as NA; this confuses the use of is.na()
...uot; date for an infinite value, > but given that this will have implications in other areas, there is a > possibility of breaking code and it should be investigated a bit further > imho. > Cheers > Joris > > > > > On Fri, Jun 8, 2018 at 11:21 PM, Werner Grundlingh <wgrundlingh at gmail.com> > wrote: > >> Indeed. as_date is from lubridate, but the same holds for as.Date. >> >> The output and it's interpretation should be consistent, otherwise it >> leads >> to confusion when programming. I understand that the difference exists &g...
2018 Jun 08
0
Date class shows Inf as NA; this confuses the use of is.na()
...,origin = '1970-01-01')) [1] 27 -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 Lab cell 925-724-7509 ?On 6/8/18, 1:02 PM, "R-devel on behalf of Werner Grundlingh" <r-devel-bounces at r-project.org on behalf of wgrundlingh at gmail.com> wrote: 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...
2018 Jun 08
2
Date class shows Inf as NA; this confuses the use of is.na()
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]]
2018 Jun 09
0
Date class shows Inf as NA; this confuses the use of is.na()
...sonally would go for NA as the "correct" date for an infinite value, but given that this will have implications in other areas, there is a possibility of breaking code and it should be investigated a bit further imho. Cheers Joris On Fri, Jun 8, 2018 at 11:21 PM, Werner Grundlingh <wgrundlingh at gmail.com> wrote: > Indeed. as_date is from lubridate, but the same holds for as.Date. > > The output and it's interpretation should be consistent, otherwise it leads > to confusion when programming. I understand that the difference exists > after asking a question on Stac...
2018 Jun 12
0
Date class shows Inf as NA; this confuses the use of is.na()
...e(x) : Some dates are not in the interval 01-01-01 and 9999-12-31, showing numerical value. From: Gabe Becker <becker.gabe at gene.com> Date: Monday, 11 June 2018 at 23:59 To: Emil Bode <emil.bode at dans.knaw.nl> Cc: Joris Meys <jorismeys at gmail.com>, Werner Grundlingh <wgrundlingh at gmail.com>, "macqueen1 at llnl.gov" <macqueen1 at llnl.gov>, r-devel <r-devel at r-project.org> Subject: Re: [Rd] Date class shows Inf as NA; this confuses the use of is.na() format.Date <- function (x, ...) { xx <- format(as.POSIXlt(x), ...) names(xx) <- n...
2018 Jun 11
0
Date class shows Inf as NA; this confuses the use of is.na()
...; but given that this will have implications in other areas, there is a > possibility of breaking code and it should be investigated a bit further > imho. > Cheers > Joris > > > > > On Fri, Jun 8, 2018 at 11:21 PM, Werner Grundlingh <wgrundlingh at gmail.com> > wrote: > >> Indeed. as_date is from lubridate, but the same holds for as.Date. >> >> The output and it's interpretation should be consistent, otherwise it >> leads >> to confusion when programming. I understand t...
2018 Jun 12
3
Date class shows Inf as NA; this confuses the use of is.na()
...really used internally for dates and date-times in POSIXct. Martin > > From: Gabe Becker <becker.gabe at gene.com> > Date: Monday, 11 June 2018 at 23:59 > To: Emil Bode <emil.bode at dans.knaw.nl> > Cc: Joris Meys <jorismeys at gmail.com>, Werner Grundlingh <wgrundlingh at gmail.com>, "macqueen1 at llnl.gov" <macqueen1 at llnl.gov>, r-devel <r-devel at r-project.org> > Subject: Re: [Rd] Date class shows Inf as NA; this confuses the use of is.na() > > format.Date <- function (x, ...) > { > xx <- format(as.POSIXlt(x),...