| census_sc_st | R Documentation |
census_2011_sc_st stores category as "Scheduled Caste" and
"Scheduled Tribe". filter(category == "SC") therefore matches nothing and
raises no error. This accessor takes either spelling, in any case, and the
table itself now carries a category_code column holding SC/ST so plain
dplyr::filter() works both ways too.
census_sc_st(category = NULL, state = NULL)
category |
|
state |
Optionally restrict to one or more states, by canonical name or
two-letter code, as in |
The two categories are not symmetric. Scheduled Tribes are named, 581 of
them. All 582 Scheduled Caste rows carry the single label
"All Scheduled Castes", one per district, so "SC" returns district
aggregates rather than individual castes.
A tibble of census_2011_sc_st rows.
census_2011_tribes for the ST rows with names harmonised and the
"Generic Tribes etc." residual removed.
nrow(census_sc_st("SC"))
nrow(census_sc_st("Scheduled Caste"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.