# Count total values in field that are not NA's
#
# Returns the number of values in a vector (excluding NA's).
# @param x vector of numeric values.
# @keywords notna
# @examples
# notna(c(1,2,3,NA,NA))
notna <- function(x) {
length(x[!is.na(x)])
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.