This function allows you to return the unweighted counts from a Crunch dataset or grouped crunch dataset. It can only be used from within a summarise() call. If your dataset is unweighted, then unweighted_n() is equivalent to n().

unweighted_n()

Examples

if (FALSE) { ds %>% group_by(cyl) %>% summarize( raw_counts = unweighted_n(), mean = mean(wt) ) }