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

2021-05-26 Thread Adrian Dușa
Dear Duncan, On Wed, May 26, 2021 at 2:27 AM Duncan Murdoch wrote: > 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

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

2021-05-26 Thread Adrian Dușa
On Wed, May 26, 2021 at 4:13 AM Gregory Warnes wrote: > 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... > That is interesting, but how does one use different

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

2021-05-26 Thread Duncan Murdoch
On 26/05/2021 10:22 a.m., Adrian Dușa wrote: Dear Duncan, On Wed, May 26, 2021 at 2:27 AM Duncan Murdoch > wrote: 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

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

2021-05-26 Thread Duncan Murdoch
After 5 minutes more thought: - code non-missing as missingKind = NA, not 0, so that missingKind could be a character vector, or missingKind = 0 could be supported. - print methods should return the main argument, so mine should be print.MultiMissing <- function(x, ...) { vals <- as.charact

[Rd] GSoC project "Improvement to nls()"

2021-05-26 Thread J C Nash
This message is to let R developers know that the project in the Subject is now a Google Summer of Code project. Our aim in this project is to find simplifications and corrections to the nls() code, which has become heavily patched. Moreover, it has some deficiencies in that there is no Marquardt

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

2021-05-26 Thread Adrian Dușa
On Wed, May 26, 2021 at 6:43 PM Duncan Murdoch wrote: > [...] > > In the best case scenario, it unnecessarily triples the size of the > > data, but perhaps this is the only way forward. > > I don't see how it could triple the size. Surely an integer has enough > values to cover all possible kind

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

2021-05-26 Thread Adrian Dușa
Yes, that is even better. Best, Adrian On Wed, May 26, 2021 at 7:05 PM Duncan Murdoch wrote: > After 5 minutes more thought: > > - code non-missing as missingKind = NA, not 0, so that missingKind could > be a character vector, or missingKind = 0 could be supported. > > - print methods should ret