unweighted_n {crplyr}R Documentation

Return the unweighted counts from summarize

Description

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().

Usage

unweighted_n()

Examples

## Not run: 
ds %>%
   group_by(cyl) %>%
   summarize(
       raw_counts = unweighted_n(),
       mean = mean(wt)
   )

## End(Not run)

[Package crplyr version 0.3.9 Index]