> Martin Maechler
> on Sat, 27 Aug 2016 18:55:37 +0200 writes:
> Suharto Anggono Suharto Anggono via R-devel
> on Sat, 27 Aug 2016 03:17:32 + writes:
>> In R devel r71157, 'droplevels' documentation, in
> Suharto Anggono Suharto Anggono via R-devel
> on Sat, 27 Aug 2016 03:17:32 + writes:
> In R devel r71157, 'droplevels' documentation, in "Arguments" section,
says this about argument 'exclude'.
> passed to factor(); factor levels which should be
In R devel r71157, 'droplevels' documentation, in "Arguments" section, says
this about argument 'exclude'.
passed to factor(); factor levels which should be excluded from the result even
if present. Note that this was implicitly NA in R <= 3.3.1 which did drop NA
levels even when present in x,
> Suharto Anggono Suharto Anggono via R-devel
> on Sun, 21 Aug 2016 10:44:18 + writes:
> In R devel r71124, if 'x' is a factor, droplevels(x) gives
> factor(x, exclude = NULL) . In R 3.3.1, it gives
> factor(x) .
> If a factor 'x' has NA
In R devel r71124, if 'x' is a factor, droplevels(x) gives
factor(x, exclude = NULL) .
In R 3.3.1, it gives
factor(x) .
If a factor 'x' has NA and levels of 'x' doesn't contain NA, factor(x) gives
the expected result for droplevels(x) , but factor(x, exclude = NULL) doesn't.
As I said in