Skip to content

Potential bugs in table dnn

1 message · SOEIRO Thomas

#
Finally, there is still a corner case that the patch did not fix in the 1D-case. We cannot override the data frame's names with the dnn argument:

tab(warpbreaks[2], dnn = letters[1]) # dnn ignored
# wool
#  A  B 
# 27 27 

tab(warpbreaks[2:3], dnn = letters[1:2]) # works
#    b
# a   L M H
#   A 9 9 9
#   B 9 9 9

But I did not manage to fix it...