count: A more versatile form of the T-SQL 'count()' function.

Description Usage Arguments Examples

Description

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.

Usage

1

Arguments

...

an arbitrary number of R objects

condition

a 1 argument condition

Examples

1
2
3
4
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)


Search within the rowr package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.