COUNT_IF: Count Vector Components Based On Condition

Description Usage Arguments Value Author(s) See Also Examples

View source: R/COUNT_IF.R

Description

Counts the amount of instances a condition is specified in a vector.

Usage

1
COUNT_IF(condition_vector, condition)

Arguments

condition_vector

Vector that you would like condition specified for.

condition

Value that will satisfy certain components in condition vector.

Value

Returns count in the condition vector based on the condition specified.

Author(s)

Nick Bultman, njbultman74@gmail.com, September 2020

See Also

sum

Examples

1
2
COUNT_IF(iris$Species, "virginica")
COUNT_IF(c(3, 1, 3), 3)

njbultman/xlsxFunctions documentation built on March 19, 2021, 6:54 p.m.