Re: [Rd] [External] Re: 1954 from NA

2021-05-25 Thread Avi Gross via R-devel
Greg, I am curious what they suggest you use multiple NaN values for. Or, is it simply like how text messages on your phone started because standard size packets were bigger than what some uses required so they piggy-backed messages on the "empty" space. If by NaN you include the various flavo

Re: [Rd] [External] Re: 1954 from NA

2021-05-25 Thread Gregory Warnes
As a side note, for floating point values, the IEEE 754 standard provides for a large set of NaN values, making it possible to have multiple types of NAs for floating point values... Sent from my iPad > On May 25, 2021, at 3:03 PM, Avi Gross via R-devel > wrote: > > That helps get more unde

Re: [Rd] [External] Re: 1954 from NA

2021-05-25 Thread Duncan Murdoch
You've already been told how to solve this: just add attributes to the objects. Use the standard NA to indicate that there is some kind of missingness, and the attribute to describe exactly what it is. Stick a class on those objects and define methods so that subsetting and arithmetic preserv

Re: [Rd] [External] Re: 1954 from NA

2021-05-25 Thread Adrian Dușa
Dear Avi, That was quite a lengthy email... What you write makes sense of course. I try hard not to deviate from the base R, and thought my solution does just that but apparently no such luck. I suspect, however, that something will have to eventually change: since one of the R building blocks (s

Re: [Rd] [External] Re: 1954 from NA

2021-05-25 Thread Avi Gross via R-devel
That helps get more understanding of what you want to do, Adrian. Getting anyone to switch is always a challenge but changing R enough to tempt them may be a bigger challenge. His is an old story. I was the first adopter for C++ in my area and at first had to have my code be built with an all C

[Rd] Should all.equal.POSIXt respect check.attributes?

2021-05-25 Thread Jonathan Keane
Hello, Since bugzilla #17277 (https://bugs.r-project.org/bugzilla/show_bug.cgi?id=17277) was resolved all.equal.POSIXt now compares timezone attributes. Comment 4 (https://bugs.r-project.org/bugzilla/show_bug.cgi?id=17277#c4) in that ticket makes reference that both arguments check.tz (which appea

Re: [Rd] [External] Re: 1954 from NA

2021-05-25 Thread Adrian Dușa
On Tue, May 25, 2021 at 4:14 PM wrote: > [...] > > Yes, it should be discarded. > > You can of course do what you like in code you keep to yourself. But > please do not distribute code that does this. via CRAN or any other > means. It will only create problems for those maintaining R. > > > After

Re: [Rd] [External] Re: 1954 from NA

2021-05-25 Thread luke-tierney
On Tue, 25 May 2021, Adrian Dușa wrote: Dear Avi, Thank you so much for the extended messages, I read them carefully. While partially offering a solution (I've already been there), it creates additional work for the user, and some of that is unnecessary. What I am trying to achieve is best des

Re: [Rd] [External] Re: 1954 from NA

2021-05-25 Thread Adrian Dușa
Dear Avi, Thank you so much for the extended messages, I read them carefully. While partially offering a solution (I've already been there), it creates additional work for the user, and some of that is unnecessary. What I am trying to achieve is best described in this draft vignette: devtools::i