count | R Documentation |
count()
function.Implementation of T-SQL count
and Excel COUNTIF
functions.
Shows the total number of elements in any number of data objects altogether or
that match a condition.
count(..., condition = (function(x) TRUE))
... |
an arbitrary number of |
condition |
a 1 argument condition |
count(c(NA,1,2))
count(c(NA,1,2),is.na)
count(c(NA,1,2),list('A',4),cbind(1,2,3))
count(c(NA,1,2),list('A',4),cbind(1,2,3),condition=is.character)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.