unweighted_n {crplyr} | R Documentation |
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()
## Not run:
ds %>%
group_by(cyl) %>%
summarize(
raw_counts = unweighted_n(),
mean = mean(wt)
)
## End(Not run)