Skip to contents

PakPC2017Tehsil data of Pakistan population census 2017.

Usage

data(PakPC2017Tehsil)

Format

A data.table and data.frame with 543 observations of 06 variables.

Province

Provinces of Pakistan

Division

Divisions of Pakistan

District

Districts of Pakistan

Tehsil

Tehsils of Pakistan

Pop1998

Population of census 1998

Pop2017

Population of census 2017

References

  1. Pakistan Bureau of Statistics, Pakistan Population Census 2017 (http://www.pbscensus.gov.pk/).

Author

Muhammad Yaseen (myaseen208@gmail.com)

Examples

library(PakPC2017)
library(dplyr)
#> 
#> Attaching package: ‘dplyr’
#> The following objects are masked from ‘package:stats’:
#> 
#>     filter, lag
#> The following objects are masked from ‘package:base’:
#> 
#>     intersect, setdiff, setequal, union
library(magrittr)
data("PakPC2017Tehsil")

PakPC2017Tehsil %>%
  group_by(Province, Division, District) %>%
  summarise(
    Pop1998 = sum(Pop1998, na.rm = TRUE)
  , Pop2017 = sum(Pop2017, na.rm = TRUE))
#> `summarise()` has grouped output by 'Province', 'Division'. You can override
#> using the `.groups` argument.
#> # A tibble: 129 × 5
#> # Groups:   Province, Division [29]
#>    Province    Division District Pop1998 Pop2017
#>    <chr>       <chr>    <chr>      <dbl>   <dbl>
#>  1 Balochistan Kalat    Awaran    118173  121680
#>  2 Balochistan Kalat    Kalat     237834  412232
#>  3 Balochistan Kalat    Kharan     96900  156152
#>  4 Balochistan Kalat    Khuzdar   417466  802207
#>  5 Balochistan Kalat    Lasbela   312695  574292
#>  6 Balochistan Kalat    Mastung   150650  266461
#>  7 Balochistan Kalat    Washuk    110009  176206
#>  8 Balochistan Mekran   Gwadar    185498  263514
#>  9 Balochistan Mekran   Kech      413204  909116
#> 10 Balochistan Mekran   Panjgur   234051  316385
#> # ℹ 119 more rows

 PakPC2017Tehsil %>%
  filter(District == "Faisalabad")
#> # A tibble: 6 × 6
#>   Province Division   District   Tehsil            Pop1998 Pop2017
#>   <chr>    <chr>      <chr>      <chr>               <dbl>   <dbl>
#> 1 Punjab   Faisalabad Faisalabad Faisalabad City   2140346 3237961
#> 2 Punjab   Faisalabad Faisalabad Faisalabad Saddar  924110 1465411
#> 3 Punjab   Faisalabad Faisalabad Chak Jhumra        253806  332461
#> 4 Punjab   Faisalabad Faisalabad Sammundri          508637  643068
#> 5 Punjab   Faisalabad Faisalabad Tandlianwala       540802  702733
#> 6 Punjab   Faisalabad Faisalabad Jaranwala         1061846 1492276