tableNA {statip} | R Documentation |
Alternative Table Creation
Description
Count the occurrences of each factor level or value in a vector.
Usage
tableNA(x)
Arguments
x |
numeric. An atomic vector or a factor. |
Value
An object of class "tableNA"
, which is the result of
tabulate()
with three attributes:
-
type_of_x
: the result oftypeof(x)
; -
is_factor_x
: the result ofis.factor(x)
; -
levels
: the result oflevels(x)
.
The number of missing values is always reported.
Examples
tableNA(c(1,2,2,1,3))
tableNA(c(1,2,2,1,3, NA))
[Package statip version 0.2.3 Index]