count.na | R Documentation |
Count the number of NA values in a data frame or vector.
## S3 method for class 'na'
count(x)
x |
an object to count. All bets are off if you don't pass a data frame or a vector. |
If x is a vector, returns a single numeric count of the NAs in the vector. If x is a data frame, returns a two-column data frame with counts for each column of the data frame.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.