p_count_if {dtrackr}R Documentation

Simple count_if dplyr summary function

Description

Simple count_if dplyr summary function

Usage

p_count_if(..., na.rm = TRUE)

Arguments

...

expression to be evaluated

na.rm

ignore NA values?

Value

a count of the number of times the expression evaluated to true, in the current context

Examples

library(dplyr)
library(dtrackr)
tmp = iris %>% dplyr::group_by(Species)
tmp %>% dplyr::summarise(long_ones = p_count_if(Petal.Length > 4))

[Package dtrackr version 0.4.4 Index]