Code
%>%
SOCR left_join(SOCR_var$SOURCE %>%
setNames(c("SOURCE", "Source")), by = "SOURCE") %>%
group_by(SOURCE, Source) %>%
summarise(Nobs = n()) %>%
arrange(-Nobs) %>%
if (is_html_output()) print_table(.) else .} {
SOURCE | Source | Nobs |
---|---|---|
ALL | All | 413052 |
10 | Public | 406332 |
20 | Mandatory Private | 6720 |