Description Usage Arguments Methods (by class)
Count the number of NAs in an object
1 2 3 4 5 6 7 |
x |
An object, either a vector or a data.frame |
... |
Extra arguments to na_count |
columns |
Vector of column names |
data.frame
: If columns are specified, returns the maximum of the count of NAs for those columns. Otherwise, it returns the number of rows that have a NA in any column.
default
: Calls na.omit
on x
, and returns the length of the result. This is only meaningful for one-dimensional objects (vectors).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.