A slight modification of the table function, to include
NA values in the table by default. See table for
details of the function.
Arguments
- ...
One or more objects which can be interpreted as factors (including numbers or character strings), or a list (such as a data frame) whose components can be so interpreted. (For ‘as.table’, arguments passed to specific methods; for ‘as.data.frame’, unused.)
- exclude
Levels to remove for all factors in ‘...’. If it does not contain NA and ‘useNA’ is not specified, it implies ‘useNA = "ifany"’. See ‘Details’ for its interpretation for non-factor arguments.
- useNA
Whether to include
NAvalues in the table. Default is nowifany.- dnn
The names to be given to the dimensions in the result (the dimnames names).
- deparse.level
Controls how the default ‘dnn’ is constructed. See
tablefor details.
Author
R Core Team, modified by Mathieu Basille <mathieu@basille.org>