census_sc_st: Scheduled Caste and Scheduled Tribe rows, by either name

View source: R/levels.R

census_sc_stR Documentation

Scheduled Caste and Scheduled Tribe rows, by either name

Description

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.

Usage

census_sc_st(category = NULL, state = NULL)

Arguments

category

"SC", "ST", "Scheduled Caste", "Scheduled Tribe", or NULL (default) to keep both. Case-insensitive; a vector selects several.

state

Optionally restrict to one or more states, by canonical name or two-letter code, as in get_census().

Details

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.

Value

A tibble of census_2011_sc_st rows.

See Also

census_2011_tribes for the ST rows with names harmonised and the "Generic Tribes etc." residual removed.

Examples

nrow(census_sc_st("SC"))
nrow(census_sc_st("Scheduled Caste"))

censusindia documentation built on Oct. 15, 2026, 5:08 p.m.