| notNA | R Documentation | 
This function calculates the number of values in a vector that are not NA.
notNA(x, big.mark = NULL, scientific = FALSE, ...)
x | 
 A vector.  | 
big.mark | 
 Argument to pass to   | 
scientific | 
 Argument to pass to   | 
... | 
 Other arguments to pass to   | 
This function just shorthand for sum(!is.na(x)), with a shorter name for reference in the vtable or sumtable summ option.
If big.mark is specified, will return a formatted string instead of a number, where the formatting is based on format(x, big.mark = big.mark, scientific = FALSE, ...).
x <- c(1, 1, NA, 2, 3, NA)
notNA(x)
notNA(1:10000, big.mark = ',')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.