Skip to content
Prev 7593 / 63424 Next

levels() counter-intuitif? (PR#1693)

rjvbertin@hotmail.com writes:
Not a bug (in any sense). Basically, you do need factors with levels
that are not present once in a while (we had a tabulation example
recently), and it is easier to remove unwanted levels than it is to
get the levels back in. E.g.
[1] medium large 
Levels:  large medium small
[1] medium large 
Levels:  large medium
[1] medium large 
Levels:  large medium 

As for the usefulness, consider this
numeric(0)
menarche
1 2 
0 0