Calculates the number of incomplete cases.

## Arguments

- x
An

`R`

object. Currently supported are methods for the following classes:`mids`

,`data.frame`

and`matrix`

. Also,`x`

can be a vector.

## Examples

```
nic(nhanes) # the remaining 12 rows
#> [1] 12
nic(nhanes[, c("bmi", "hyp")]) # number of cases with incomplete bmi and hyp
#> [1] 9
```