| get_census | R Documentation |
Census data for India at state, district, or subdistrict level.
get_census(
year,
geography = c("state", "district", "subdistrict"),
variables = NULL,
state = NULL,
geometry = FALSE,
sector = c("total", "rural", "urban")
)
year |
Census year. One of: 1901, 1911, 1921, 1931, 1941, 1951, 1961, 1971, 1981, 1991, 2001, 2011. |
geography |
Geographic level: "state", "district", or "subdistrict". Not all geographies are available for all years. |
variables |
Character vector of variables to retrieve. Use
|
state |
Optional. Filter to specific state(s). Can be state name or abbreviation (e.g., "Maharashtra" or "MH"). |
geometry |
If TRUE, returns an sf object with geographic boundaries. |
sector |
For 1971/1981, filter to "total", "rural", or "urban". |
A tibble (or sf object if geometry = TRUE).
get_census(2011, "state")
get_census(1971, "district", state = "Maharashtra")
get_census(1981, "district", variables = c("population", "literacy_rate"), geometry = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.