Description Usage Arguments Details Value Author(s) See Also Examples
Computes lengths and frequencies of NA gaps, i.e. sequences of consecutive NAs, in a vector or data frame.
1 | na_gaps(x)
|
x |
A vector or data frame. |
If the input is a data frame, a missing value is always defined as a not complete case, i.e. each row containing an NA is treated as a missing observation.
A list with three elements of class 'na_gaps'.
table
A table of gap lengths and corresponding frequencies.
lengths
A vector of gap lengths, actually the names
of list element table
.
number
The number of incomplete cases.
J. Gross, A. Moeller.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.