tbl_summary | R Documentation |
Gets the number of distinct values in a dataset and total number of observations per column.
tbl_summary(x, .prop = FALSE)
x |
Dataset. |
.prop |
Logical determining whether output should transform the count of distinct and total observations for each column into a proportion of the dataset's total size. |
A dataframe with the number of distinct observations and total observations per column.
tibble::tibble(a = c('A','B', NA),
b = c(1.2, 1.2, 1.2),
c = c(4.5, NA, NA)) %>%
tbl_summary(.prop = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.