[Rd] Potential bugs in table dnn

Martin Maechler m@ech|er @end|ng |rom @t@t@m@th@ethz@ch
Thu Oct 14 11:43:51 CEST 2021


Dear Thomas,

actually, I have in the mean time already applied the changes I
think are needed,
both in the code and in the documentation.

So, in this case, it may be a waste of time to still open a
bugzilla issue, I think.

Here are my current changes (not yet committed; of course I would also add
a NEWS entry, mentioning you):


Index: src/library/base/R/table.R
===================================================================
53c53
< 	if (length(dnn) != length(args))
---
> 	if(length(args) == 1L || length(dnn) != length(args))
Index: src/library/base/man/table.Rd
===================================================================
23c23
<   \code{table} uses the cross-classifying factors to build a contingency
---
>   \code{table} uses cross-classifying factors to build a contingency
41c41,42
<     (including character strings), or a list (or data frame) whose
---
>     (including numbers or character strings), or a \code{\link{list}} (such
>     as a data frame) whose
67c68,69
<   If the argument \code{dnn} is not supplied, the internal function
---
>   If the argument \code{dnn} is not supplied \emph{and} if \code{\dots} is
>   not one \code{list} with its own \code{\link{names}()}, the internal function



With regards,
Martin



More information about the R-devel mailing list