Displaying 1 result from an estimated 1 matches for "r71225".
Did you mean:
371225
2016 Sep 10
1
table(exclude = NULL) always includes NA
...A .
So, it should be
is.na(a) <- match(a0, c(exclude,NA), nomatch=0L) > 0L
or
is.na(a) <- as.logical(match(a0, c(exclude,NA), nomatch=0L)) .
The parallel code
is.na(a) <- match(a0, exclude, nomatch=0L)
is to be treated similarly.
Example that gives wrong result in R devel r71225:
table(3:1, exclude = 1)
table(3:1, exclude = 1, useNA = "always")
--------------------------------------------
On Tue, 16/8/16, Martin Maechler <maechler at stat.math.ethz.ch> wrote:
Subject: Re: [Rd] table(exclude = NULL) always includes NA
Cc: "Martin Maechler" <...