Re: [Rd] New R function is.nana = is.na & !is.nan

2020-01-02 Thread Tomas Kalibera
Please note that ?NaN says "Computations involving ‘NaN’ will return ‘NaN’ or perhaps ‘NA’: which of those two is not guaranteed and may depend on the R platform (since compilers may re-order computations)." It is not reliable to depend on the distinction between NA and (non-NA) NaN. Part

Re: [Rd] New R function is.nana = is.na & !is.nan

2020-01-01 Thread Jan Gorecki
"nana" is meant to express "NA, really NA". Your suggestion sounds good. On Thu 2 Jan, 2020, 3:38 AM Pages, Herve, wrote: > Happy New Year everybody! > > The name (is.nana) doesn't make much sense to me. Can you explain it? > > One alternative would be to add an extra argument (e.g. 'strict')

Re: [Rd] New R function is.nana = is.na & !is.nan

2020-01-01 Thread Pages, Herve
Happy New Year everybody! The name (is.nana) doesn't make much sense to me. Can you explain it? One alternative would be to add an extra argument (e.g. 'strict') to is.na(). FALSE by default, and ignored (with or w/o a warning) when the type of 'x' is not "numeric". H. On 12/31/19 22:16,