unweighted_n | 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.