View source: R/count_not_NAs.R
count_not_NAs | R Documentation |
Calculate the number of non-NA elements in an object. Can be useful for determining the sparseness of matrices and data frames, or their component rows or columns.
count_not_NAs(x)
x |
object to be tested for non-NA values. Can be a data.frame, matrix, vector, list. For lists, it looks at the list elements themselves, not within those elements. For other object types, results may not be as expected. |
integer, the number of non-NA values in x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.