countNA | R Documentation |
This function calculates the number of values in a vector that are NA.
countNA(x)
x |
A vector. |
This function just shorthand for sum(is.na(x))
, with a shorter name for reference in the vtable
or sumtable
summ
option.
x <- c(1, 1, NA, 2, 3, NA)
countNA(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.