| count_NA | R Documentation | 
NAsCount the number of NA values in a vector, matrix or data frame
count_NA(x, type = "default")
| x | a vector, matrix or data frame, in which  | 
| type | How to count the  
 | 
The number of missing values.
count_NA(c(1, NA, 3, NA, 5, NA)) test_df <- data.frame(X1 = rep(c(1, NA), 5), X2 = c(1:9, NA)) count_NA(test_df) count_NA(test_df, "cols") # the default count_NA(test_df, "rows") count_NA(test_df, "all")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.