Re: [Rd] table(exclude = NULL) always includes NA

2016-08-12 Thread Martin Maechler
> Suharto Anggono Suharto Anggono via R-devel > on Thu, 11 Aug 2016 16:19:49 + writes: > I stand corrected. The part "If set to 'NULL', it implies > 'useNA="always"'." is even in the documentation in R > 2.8.0. It was my fault not to check carefully. I wonder, > w

Re: [Rd] ifelse() woes ... can we agree on a ifelse2() ?

2016-08-12 Thread Martin Maechler
Excuse for the delay; I had waited for other / additional comments and reactions (and been distracted with other urgent issues), but do want to keep this thread alive [inline] .. > Duncan Murdoch > on Sat, 6 Aug 2016 11:30:08 -0400 writes: > On 06/08/2016 10:18 AM, Martin Maech

Re: [Rd] ifelse() woes ... can we agree on a ifelse2() ?

2016-08-12 Thread Hadley Wickham
> >> One possibility would also be to consider a "numbers-only" or > >> rather "same type"-only {e.g., would also work for characters} > >> version. > > > I don't know what you mean by these. > > In the mean time, Bob Rudis mentioned dplyr::if_else(), > which is very relevant, th

Re: [Rd] table(exclude = NULL) always includes NA

2016-08-12 Thread Martin Maechler
> Martin Maechler > on Fri, 12 Aug 2016 10:12:01 +0200 writes: > Suharto Anggono Suharto Anggono via R-devel > on Thu, 11 Aug 2016 16:19:49 + writes: >> I stand corrected. The part "If set to 'NULL', it implies >> 'useNA="always"'." is even in the documentati