census_languages: Language speakers at a chosen geographic level

View source: R/levels.R

census_languagesR Documentation

Language speakers at a chosen geographic level

Description

The C-16 mother tongue tables stack state, district and subdistrict rows, and a subdistrict carries its parent's district_code. Filtering on district_code != "000" therefore keeps subdistricts too, and summing the result double counts: 640 districts become 6,231 rows, and district totals inflate by a median factor of two.

Usage

census_languages(level = c("district", "subdistrict"), language_group = NULL)

Arguments

level

"district" (38,993 rows, 640 districts) or "subdistrict" (144,134 rows, 5,988 areas).

language_group

Optionally restrict to one language group, as listed in the language_group column. Default NULL keeps all.

Details

area_name does not separate the two levels either, because in 392 of the 640 districts the headquarters tehsil carries the district's own name. Subdistricts do partition their district, so the district value for any ⁠(district_code, language_code)⁠ is half the group sum. The tables this returns are that split, applied once at build time.

Value

A tibble at the requested level, one row per language per area.

See Also

census_2011_linguistic_diversity for one row per district with entropy already computed.

Examples

census_languages("district") |> head()

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