study_count | R Documentation |
This function simplifies the process of counting the number of unique observations in a dataset
or a subset by avoiding repetitive use of summarise('N (unique)' = n_distinct(counting_var))
.
study_count(dataset, counting_var = "unique_study_id")
dataset |
The dataset or subset. |
counting_var |
The variable to count unique observations (default: "unique_study_id"). |
A tibble with the count of distinct observations.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.