| p_count_if | R Documentation | 
Simple count_if dplyr summary function
p_count_if(..., na.rm = TRUE)
| ... | expression to be evaluated | 
| na.rm | ignore NA values? | 
a count of the number of times the expression evaluated to true, in the current context
library(dplyr)
library(dtrackr)
tmp = iris %>% dplyr::group_by(Species)
tmp %>% dplyr::summarise(long_ones = p_count_if(Petal.Length > 4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.