Data on individual churches
Source:vignettes/data-on-individual-churches.Rmd
data-on-individual-churches.Rmd
The functions on this page all help with processing data related to individual churches:
-
coe_churches()
returns a tibble of every church in the Church of England, including information on its parish, benefice, deanery, archdeaconry and diocese. Data are read directly from the ESRI feature server kindly provided by the Church of England’s Data Services team. -
coe_esri_fields()
is a helper function that returns valid fields which can be passed to thewhere
argument ofcoe_churches()
to query the dataset. -
coe_parish_from_church()
returns a parish code for each of any number of church codes. Useful for obtaining a parish code from the church codes listed at A Church Near You
coe_churches()
Get tidy data on Church of England churches.
coe_churches(where = "ChurchCode = 608186") |>
dplyr::glimpse()
#> Rows: 1
#> Columns: 11
#> $ church_code <int> 608186
#> $ parish_name <chr> "Leytonstone: St Margaret w St Columba"
#> $ parish_code <int> 580186
#> $ benefice_name <chr> "Leytonstone St Marg w St Columba"
#> $ benefice_id <chr> "08/265 M"
#> $ deanery_name <chr> "WALTHAM FOREST"
#> $ deanery_id <int> 58108
#> $ archdeaconry_name <chr> "WEST HAM"
#> $ archdeaconry_id <int> 581
#> $ diocese_name <chr> "Chelmsford"
#> $ diocese_number <int> 8
coe_parish_from_church()
Get the parish code of any number of churches.
coe_parish_from_church(c(635041, 623001))
#> [1] 350041 230001
coe_esri_fields()
This tiny function returns the names of the fields used in the Feature Server of Churches provided by CoE Data Services through ESRI.
coe_esri_fields()
#> [1] "FID" "ChurchCode" "ChurchName" "ACNY_url" "ACNY_id"
#> [6] "Heritg_url" "LBGrade" "ParLocNa" "ParLegNa" "ParishID"
#> [11] "BenefNa" "BenefID" "DeanNa" "DeanID" "ArchdNa"
#> [16] "ArchdID" "DioNa" "DioID"