search for: grundlingh

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

Did you mean: wgrundlingh
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()
...lications 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 &...
2018 Jun 09
4
Date class shows Inf as NA; this confuses the use of is.na()
..."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 diff...
2018 Jun 08
0
Date class shows Inf as NA; this confuses the use of is.na()
...te[1:1], format: "1970-01-28" > as.numeric(as.Date(27,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....
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()
...Inf days I personally 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...
2018 Jun 12
0
Date class shows Inf as NA; this confuses the use of is.na()
...: In format.Date(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), ...) n...
2018 Jun 11
0
Date class shows Inf as NA; this confuses the use of is.na()
...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...
2018 Jun 12
3
Date class shows Inf as NA; this confuses the use of is.na()
...39; -- which is 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 <- forma...