Skip to content
Prev 67288 / 398502 Next

NA in table with integer types

On Fri, 8 Apr 2005, Paul Rathouz wrote:

            
I think this very clear from the help page:

  exclude: values to use in the exclude argument of 'factor' when
           interpreting non-factor objects; if specified, levels to
           remove from all factors in ....

      Only when 'exclude' is specified (i.e., not by default), will
      'table' drop levels of factor arguments potentially.

and you cannot remove a level that is not there.

You seem to be persisting in not understanding: 'exclude' is supposed to 
be the same type as x (or its levels), and you have given logical and 
numeric values, not character ones.